-
-
Save leathekd/721ba847a36c4cafa774 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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