Interface IAsyncThunkCreator<TArg, TPayload>
Interface for an async thunk creator with argument.
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public interface IAsyncThunkCreator<TArg, TPayload>
Type Parameters
Name | Description |
---|---|
TArg | The type of the thunk argument. |
TPayload | The type of the payload. |
Methods
Invoke(TArg)
Creates an async thunk.
Declaration
AsyncThunkAction<TArg, TPayload> Invoke(TArg arg)
Parameters
Type | Name | Description |
---|---|---|
TArg | arg | The argument to pass to the thunk. |
Returns
Type | Description |
---|---|
AsyncThunkAction<TArg, TPayload> | The async thunk. |