AsyncEventLine<T> class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode ↔ AsyncLineMode
-
The dispatch mode for this AsyncEventLine.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriptions
↔ List<
AsyncEventSubscription< T> > -
getter/setter pair
Methods
-
dispatch(
T event) → Future -
Invokes and awaits the event chain with an
event
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
AsyncEventConsumer< T> consumer, {int priority = EventPriority.normal}) → AsyncEventSubscription<T> -
Subscribes a AsyncEventConsumer function to this AsyncEventLine with
a
priority
which defaults to EventPriority.normal. -
subscribeNext(
{int priority = EventPriority.normal}) → Future< T> -
Subscribes to this AsyncEventLine with a
priority
which defaults to EventPriority.normal for one event. -
subscribeStream(
{int priority = EventPriority.normal}) → EventLineStream< T> -
Subscribes to this AsyncEventLine with a
priority
which defaults to EventPriority.normal and returns all events as a Stream. -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
AsyncEventSubscription< T> subscription) → void -
Unsubscribes an already registered
subscription
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited