docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IThunkAPI

    Base interface for the Thunk API.

    Namespace: Unity.AppUI.Redux
    Assembly: Unity.AppUI.Redux.dll
    Syntax
    public interface IThunkAPI

    Properties

    cancellationToken

    The cancellation token of the thunk (if any).

    Declaration
    CancellationToken cancellationToken { get; }
    Property Value
    Type Description
    CancellationToken

    isCancellationRequested

    Whether the thunk has been cancelled.

    Declaration
    bool isCancellationRequested { get; }
    Property Value
    Type Description
    bool

    requestId

    The request id of the thunk.

    Declaration
    string requestId { get; }
    Property Value
    Type Description
    string

    store

    The store that the thunk is dispatching to.

    Declaration
    IDispatchable store { get; }
    Property Value
    Type Description
    IDispatchable

    Methods

    Abort(object)

    Cancels the thunk with a reason.

    Declaration
    void Abort(object reason)
    Parameters
    Type Name Description
    object reason

    The reason for the cancellation.

    Extension Methods

    AsyncThunkAPIExtensions.Dispatch(IThunkAPI, string)
    AsyncThunkAPIExtensions.Dispatch(IThunkAPI, ActionCreator)
    AsyncThunkAPIExtensions.Dispatch(IThunkAPI, IAction)
    AsyncThunkAPIExtensions.Dispatch<TPayload>(IThunkAPI, string, TPayload)
    AsyncThunkAPIExtensions.Dispatch<TPayload>(IThunkAPI, ActionCreator<TPayload>, TPayload)
    AsyncThunkAPIExtensions.GetState<TState>(IThunkAPI)
    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)