Skip to content

Instantly share code, notes, and snippets.

@leathekd
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leathekd/721ba847a36c4cafa774 to your computer and use it in GitHub Desktop.
Save leathekd/721ba847a36c4cafa774 to your computer and use it in GitHub Desktop.
(do
(require '[immutant.pipeline :as pl])
(defn return-nil [& _] nil)
(defn return-something [& _] "something")
(defonce nil-pipe (pl/pipeline "nilpipe" return-nil))
(defonce something-pipe (pl/pipeline "somethingpipe" return-something))
{:nil (deref (nil-pipe :an-arg) 2000 :nilpipe-timed-out)
:something (deref (something-pipe :an-arg) 2000 :somethingpipe-timed-out)})
;; => {:nil :nilpipe-timed-out, :something "something"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment