docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AsyncThunkAction<TArg, TPayload>

    An action created by an async thunk action creator.

    Inheritance
    object
    Action
    Action<TArg>
    AsyncThunkAction<TArg, TPayload>
    AsyncThunkAction<TPayload>
    Implements
    IEquatable<Action>
    IEquatable<Action<TArg>>
    IAction<TArg>
    IAction
    IAsyncThunkAction
    IEquatable<AsyncThunkAction<TArg, TPayload>>
    Inherited Members
    Action<TArg>.payload
    Action<TArg>.Equals(Action<TArg>)
    Action.type
    Action.Equals(Action)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    Action<TArg>.Equals(object)

    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
    Overrides
    Action<TArg>.GetHashCode()

    Implements

    IEquatable<T>
    IEquatable<T>
    IAction<TPayload>
    IAction
    IAsyncThunkAction
    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)