Interface IAsyncThunkAction
Metadata for pending actions dispatched by async thunks.
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public interface IAsyncThunkAction
Methods
ExecuteAsync(IDispatchable, CancellationToken)
Executes the async thunk action.
Declaration
Task ExecuteAsync(IDispatchable store, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IDispatchable | store | The store to dispatch the action to. |
Cancellation |
cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous operation. |
ExecuteCoroutine(IDispatchable, CancellationToken)
Executes the async thunk action as a coroutine.
Declaration
Coroutine ExecuteCoroutine(IDispatchable store, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IDispatchable | store | The store to dispatch the action to. |
Cancellation |
cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Coroutine | The coroutine. |