10.2.4 Buffered Asynchronous Channels
See also Thread Mailboxes.
An asynchronous channel is like a channel, but it buffers values so that a send operation does not wait on a receive operation.
In addition to its use with procedures that are specific to asynchronous channels, an asynchronous channel can be used as a synchronizable event (see Events). An asynchronous channel is ready for synchronization when async-channel-get would not block; the asynchronous channel’s synchronization result is the same as the async-channel-get result.
procedure
(async-channel? v) → boolean?
v : any/c
procedure
(make-async-channel [limit]) → async-channel?
limit : (or/c exact-positive-integer? #f) = #f
procedure
(async-channel-get ach) → any/c
ach : async-channel?
procedure
(async-channel-try-get ach) → any/c
ach : async-channel?
procedure
(async-channel-put ach v) → void?
ach : async-channel? v : any/c
procedure
(async-channel-put-evt ach v) → evt?
ach : async-channel? v : any/c
Examples: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|