Show / Hide Table of Contents

    Class TaskExtensions

    Extensions for 'System.Task'.

    Inheritance
    System.Object
    TaskExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: UnityEngine
    Assembly: cs.temp.dll.dll
    Syntax
    public static class TaskExtensions

    Methods

    DontWait(Task)

    Extension method to suppress the warning you get when you don't await a task in a async method.

    Declaration
    public static void DontWait(this Task task)
    Parameters
    Type Name Description
    System.Threading.Tasks.Task task

    Task to not wait for.

    Remarks

    Should only be used when you are sure that not-waiting for the task is what you want.

    Back to top ComponentTask documentation