receive abstract method

Future<ChannelEvent<T>> receive()

Reads one value from the channel. Returns immediately if a value is available in the channel. If the channel is empty, a future is returned that resolves with the value when a new value is available.

Implementation

Future<ChannelEvent<T>> receive();