Observer

An observer tied to a specific observable.

This type provides a channel and an input range interface to enable sequential consumption of events emitted by an observer.

Members

Functions

consumeOne
T consumeOne()

Reads a single event.

popFront
void popFront()

Input range popFront method.

tryConsumeOne
bool tryConsumeOne(T dst)

Attempts to read a single event.

Properties

empty
bool empty [@property getter]

Determines whether there are any events left.

front
T front [@property getter]

Input range front property.

pending
bool pending [@property getter]

Determines whether any more events are currently pending.

Meta