ReduxBackgroundTask<TState extends ReduxState> class
abstract
ReduxStoreのBackground処理を行う. これは処理の分割やPlugin等の細かい処理を挿入するための用意されており、 実際のState反映はあくまでReduxActionを要する.
NOTE: このReduxBackgroundTaskは処理の簡略化のため、 ReduxStateが更新されたタイミングでgc処理される.
また、ReduxStore.dispose()がコールされると、強制的にdispose()が コールされる. その際は速やかにメモリを開放して処理を終了しなければならない.
登録処理はActionとして行われるため、 gcまでには最低でも1Actionイテレーションは稼働可能なことになる.
Constructors
-
ReduxBackgroundTask(ReduxStore<
TState> store)
Properties
- done → bool
-
動作を完了したらtrue.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
store
→ ReduxStore<
TState> -
final
Methods
-
dispose(
) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onStart(
TState state) → void - BackgroundTaskの処理を開始させる
-
registerToPlugin(
) → void - Pluginの動作リストに登録する
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited