Skip to content

Instantly share code, notes, and snippets.

@cmatheson
Created July 27, 2013 00:04
Show Gist options
  • Save cmatheson/6093044 to your computer and use it in GitHub Desktop.
Save cmatheson/6093044 to your computer and use it in GitHub Desktop.
(ns irc-proxy.core
(:require [clojure.core.async :as async :refer :all]))
(def c (chan))
(def quit (chan))
(defn -main []
(go
(while true
(if-let [v (<! c)]
(prn v)
(close! quit))))
(go
(>! c "testing")
(>! c "core.async")
(close! c))
(<!! quit))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment