docs.unity3d.com
    Show / Hide Table of Contents

    Class AsyncRequest<T>

    An async operation that contains a type of request. Request

    Inheritance
    Object
    AsyncOp
    AsyncRequest<T>
    Inherited Members
    AsyncOp.Reset()
    AsyncOp.IsCompleted
    AsyncOp.IsSequenceCompleted
    AsyncOp.HasSequenceFailed
    AsyncOp.IsCompletedSuccessfully
    AsyncOp.WaitDurationMs
    AsyncOp.ExecuteDurationMs
    AsyncOp.AysncState
    AsyncOp.Root
    AsyncOp.Last
    AsyncOp.ContinueWith(AsyncOp)
    AsyncOp.ContinueWith(Action)
    AsyncOp.ContinueWith(Action<AsyncOp>)
    AsyncOp.ContinueWith<T>(AsyncRequest<T>)
    Namespace: Unity.PSN.PS5.Aysnc
    Syntax
    public class AsyncRequest<T> : AsyncOp where T : Request
    Type Parameters
    Name Description
    T

    A type of Request. Request

    Constructors

    AsyncRequest()

    Contruct an empty async operation

    Declaration
    public AsyncRequest()

    AsyncRequest(T)

    Construct an async operation containing a request

    Declaration
    public AsyncRequest(T request)
    Parameters
    Type Name Description
    T request

    The request object to run

    Properties

    Request

    The request data

    Declaration
    public T Request { get; }
    Property Value
    Type Description
    T

    Methods

    ContinueWith(Action<AsyncRequest<T>>)

    Join an Action, which contains an async Request, onto this operation, which will execute after this operation has finished.

    Declaration
    public AsyncAction<AsyncRequest<T>> ContinueWith(Action<AsyncRequest<T>> continueWith)
    Parameters
    Type Name Description
    Action<AsyncRequest<T>> continueWith

    Action containing the Async request

    Returns
    Type Description
    AsyncAction<AsyncRequest<T>>

    An async action

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 25 September 2020