[][src]Module postage::barrier

Barrier channels can be used to synchronize events, but do not transmit any data.
When the sender is dropped (or tx.send(()) is called), the receiver is awoken.
This can be used to asynchronously coordinate actions between tasks.

Structs

Receiver

A barrier reciever. Can be used with the postage::Stream trait to return a () value when the Sender is dropped.

Sender

The sender half of a barrier channel. Dropping the sender transmits to the receiver.

Functions

channel

Constructs a pair of barrier endpoints