I can suggest one, though I haven't used it for real so can't speak for all the design tradeoffs:
(alts! [[out val] (timeout N)]) will attempt to write to a consumer, but if the consumer is swamped, will drop the message on the floor and move on. (I can imagine rewriting this using alt! so that if the timeout is taken, you can log that you've dropped something.) This is pretty similar to Sean's use-case, just with a put instead of a take. On 9 September 2013 03:21, Alan Shaw <noden...@gmail.com> wrote: > I'm accustomed to using alts! to allow taking from a collection of > core.async ports, but haven't come up with a use case for a put in alts!, > either with or without takes. > Have you? > > -A > > -- > -- > 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. > -- -- 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.