Channels consist of 3 "things"

1) pending put queue
2) pending take queue
3) buffer

What will happen is that the async/put! will be put into the pending put
queue and sit there until either the buffer has room, or a take handles the
put.

These pending operation queues can be seen as unbounded queues, and
unbounded queues should be considered a bad thing. Therefore there is an
arbitrary restriction on the size of the pending queues: they are limited
to no more than 1024 pending puts/takes. In practice this is very rarely a
limitation, but if it becomes a problem we could make it configurable, we
just haven't seen a good use case for that yet.

Hope this helps,

Timothy Baldridge


On Wed, Jan 15, 2014 at 3:45 PM, t x <txrev...@gmail.com> wrote:

> Hi,
>
>   Let c be a channel that is neither dropping nor slidding.
>
>   Now, furthermore, let c be full.
>
>   Lastly, suppose (async/put! c ...) is executed.
>
>   Does the clojure async spec provide guarnatees on what happens?
>
> Thanks!
>
> --
> --
> 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/groups/opt_out.
>



-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
-- 
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/groups/opt_out.

Reply via email to