Observer.tryConsumeOne

Attempts to read a single event.

struct Observer(T)
bool
tryConsumeOne
(
ref T dst
)

Return Value

Type: bool

true is returned if an event was successfully read. Otherwise a value of false is returned, which means that the observable was closed and no more events are available.

Meta