9.0
top
← prev up next →

Multicast Asynchronous ChannelsπŸ”— i

This provides an implementation of multicast channels, an extension of asynchronous channels that may have multiple recievers. Unlike asynchronous channels, multicast channels have distinct “server” and “receiver” objects, since multicast channels create a one-to-many relationship.

Creates and returns a new multicast channel server.

procedure

( multicast-channel? v)boolean?

v:any/c
Returns #t if v is a multicast channel, #f otherwise.

Creates a receiver asynchronous channel that receives messages from mc. The returned value is a standard asynchronous channel from racket/async-channel, but it does not support async-channel-put . Attempting to write to a receiver channel will raise an exception.

procedure

( multicast-channel-put mcv)void?

v:any/c
Broadcasts v to all receivers listening to mc.

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /