Class AsyncThunkAction<TArg, TPayload>
An action created by an async thunk action creator.
Inherited Members
Namespace: Unity.AppUI.Redux
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
| Type | Description |
|---|---|
| bool |
Overrides
Equals(AsyncThunkAction<TArg, TPayload>)
Declaration
public bool Equals(AsyncThunkAction<TArg, TPayload> other)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncThunkAction<TArg, TPayload> | other |
Returns
| Type | Description |
|---|---|
| bool |
ExecuteAsync(IDispatchable, CancellationToken)
Executes the async thunk action.
Declaration
public Task ExecuteAsync(IDispatchable store, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IDispatchable | store | The store to dispatch the action to. |
| CancellationToken | cancellationToken | The cancellation token. |
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
| Type | Name | Description |
|---|---|---|
| IDispatchable | store | The store to dispatch the action to. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Coroutine | The coroutine. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |