Class AsyncThunkAction<TArg, TPayload>
An action created by an async thunk action creator.
Inheritance
AsyncThunkAction<TArg, TPayload>
Assembly: Unity.AppUI.Redux.dll
Syntax
public class AsyncThunkAction<TArg, TPayload> : Action<TArg>, IEquatable<Action>, IEquatable<Action<TArg>>, IAction<TArg>, IAction, IAsyncThunkAction, IEquatable<AsyncThunkAction<TArg, TPayload>>
Type Parameters
| Name |
Description |
| TArg |
The type of the argument to pass to the thunk.
|
| TPayload |
The type of the payload.
|
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(Action)
Declaration
public override bool Equals(Action other)
Parameters
| Type |
Name |
Description |
| Action |
other |
|
Returns
Overrides
Equals(AsyncThunkAction<TArg, TPayload>)
Declaration
public bool Equals(AsyncThunkAction<TArg, TPayload> other)
Parameters
Returns
ExecuteAsync(IDispatchable, CancellationToken)
Executes the async thunk action.
Declaration
public Task ExecuteAsync(IDispatchable store, CancellationToken cancellationToken = default)
Parameters
Returns
| Type |
Description |
| Task |
A task that represents the asynchronous operation.
|
ExecuteCoroutine(IDispatchable, CancellationToken)
Executes the async thunk action as a coroutine.
Declaration
public Coroutine ExecuteCoroutine(IDispatchable store, CancellationToken cancellationToken = default)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Implements