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 <grapenthinl...@gmail.com>
wrote:

> 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)
>> (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, will call fn0 on calling thread.  Returns nil.
>>
>>
>> but it doesn't say much about fn0.  Apparently it needs to be a 1-arg
>> function (error msg for otherwise).  But, what is the arg passed to it?
>>
>> Alan
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to