NextCommand<TEvent> class

The command consumes a next event in a queue.

The returned future will be complete when a requested event arrives.

If several NextCommand commands are registered, they will complete in the requested order.

Inheritance

Constructors

NextCommand()

Properties

completer Completer<TEvent>
The completer manipulates the future returned by future.
finalinherited
future Future<TEvent>
Returns the future, which will be complete when the command conditions are met.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handle(ListQueue<TEvent> eventQueue) bool
Handle available events.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
terminate() → void
Terminates this command by throwing the TerminateException.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited