Skip to main content

receive

Function receive 

Source
fn receive()
Expand description

Append what other threads sent to the queue, then the warning for any that were dropped. A no-op off the thread that opened the channel.

Called before the queue is read or cut back (take_pending, discard), not by mark: what arrived belongs to the call that reads next, not to the queue below a new mark, which no call would take.