Class AsyncThunkCreator<TPayload>
The async thunk action creator for a thunk without arguments.
Inheritance
Inherited Members
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public class AsyncThunkCreator<TPayload> : AsyncThunkCreator<bool, TPayload>, IAsyncThunkCreator<bool, TPayload>, IAsyncThunkCreator<TPayload>
Type Parameters
Name | Description |
---|---|
TPayload | The type of the payload. |
Constructors
AsyncThunkCreator(string, AsyncThunk<TPayload>, AsyncThunkOptions<bool>)
Creates a new async thunk action creator.
Declaration
public AsyncThunkCreator(string type, AsyncThunk<TPayload> runner, AsyncThunkOptions<bool> options = null)
Parameters
Type | Name | Description |
---|---|---|
string | type | The type of the action. |
Async |
runner | The async thunk runner. |
Async |
options | The options for the async thunk. |
Methods
Invoke()
Creates an async thunk.
Declaration
public AsyncThunkAction<TPayload> Invoke()
Returns
Type | Description |
---|---|
Async |
The async thunk. |