Delegate AsyncThunk<TArg, TPayload>
The thunk task runner.
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public delegate Task<TPayload> AsyncThunk<in TArg, TPayload>(IThunkAPI<in TArg, TPayload> api)
Parameters
| Type | Name | Description |
|---|---|---|
| IThunkAPI<TArg, TPayload> | api | The thunk API. |
Returns
| Type | Description |
|---|---|
| Task<TPayload> | The task. |
Type Parameters
| Name | Description |
|---|---|
| TArg | The type of the thunk argument. |
| TPayload | The type of the action payload. |