[racket] Peekable asynchronous channel?

From: Jonathan Schuster (schuster at ccs.neu.edu)
Date: Sun Aug 11 14:12:47 EDT 2013

I'd like to have an asynchronous channel that does not remove a value from
its buffer on sync, so that I can separate the code that waits for a
message from the code that removes everything currently in the channel. In
some sense, I want sync to do a "peek", not a "get". Does anything like
this exist in Racket (or perhaps in the package system), or would I have to
write it myself?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130811/6cf87310/attachment.html>

Posted on the users mailing list.