Dispatcher<TState extends ReduxState> class
Actionの処理順確定と実行処理を行う
将来的に処理順の変更機能を盛り込む可能性があるが、 2021-05時点では逐次実行のみをサポートする.
NOTE.
一度execute()が発行されたActionは最後まで実行する権利を得る.
内部で発生した CancellationException
のタイミングに寄ってStateが不定になるのを防ぐため、
Actionは必ず正常終了しなければならない.
Constructors
- Dispatcher(Notify _notify)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispatch(
ReduxAction< TState> action) → void - Actionを処理キューに追加し、実行をリクエストする. 実行は非同期に行われる.
-
dispose(
) → Future -
hasActions(
) → bool - 実行待ち、もしくは実行中のActionが存在する場合はtrue.
-
hasPendingActions(
) → bool - 実行待ちのActionが存在する場合true
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited