Sounds like that could be useful for gracefully degrading media players.
Playback lags due to CPU contention or whatever, drop a frame to keep the
audio and video and clock-time roughly in proper sync. Things like that.


On Mon, Sep 9, 2013 at 9:09 AM, Philip Potter <philip.g.pot...@gmail.com>wrote:

> 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.
>

-- 
-- 
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