Class AsyncThunkCreator<TPayload>
The async thunk action creator for a thunk without arguments.
Inheritance
AsyncThunkCreatorBase<bool, TPayload>
AsyncThunkCreator<bool, TPayload>
AsyncThunkCreator<TPayload>
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. |
AsyncThunk<TPayload> | runner | The async thunk runner. |
AsyncThunkOptions<bool> | options | The options for the async thunk. |
Methods
Invoke()
Creates an async thunk.
Declaration
public AsyncThunkAction<TPayload> Invoke()
Returns
Type | Description |
---|---|
AsyncThunkAction<TPayload> | The async thunk. |