Re: Callback fn in core.async/put!

2016-04-28 Thread Leon Grapenthin
Looking at it again, it seems like the current docstring is quite up to date. Are sure you are on the latest version? On Wednesday, April 27, 2016 at 9:31:46 PM UTC+2, Alan Thompson wrote: > > Thanks for the update. I verified the true/false behavior and submitted a > JIRA: http://dev.clojure.o

Re: Callback fn in core.async/put!

2016-04-27 Thread Alan Thompson
Thanks for the update. I verified the true/false behavior and submitted a JIRA: http://dev.clojure.org/jira/browse/ASYNC-167 Alan On Wed, Apr 27, 2016 at 12:34 AM, Leon Grapenthin wrote: > It is true if the put did succeeded, false if the channel was already > closed. > > Should be clarified in

Re: Callback fn in core.async/put!

2016-04-27 Thread Leon Grapenthin
It is true if the put did succeeded, false if the channel was already closed. Should be clarified in the docstr. "Will throw if closed." is also not true. On Wednesday, April 27, 2016 at 5:48:09 AM UTC+2, Alan Thompson wrote: > > The docs for put! say > > (put! port val) > (put! port val fn0) >

Callback fn in core.async/put!

2016-04-26 Thread Alan Thompson
The docs for put! say (put! port val) (put! port val fn0) (put! port val fn0 on-caller?) Asynchronously puts a val into port, calling fn0 (if supplied) when complete. nil values are not allowed. Will throw if closed. If on-caller? (default true) is true, and the put is immediately accepted, wil