Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Awaitable<T>

Custom Unity type that can be awaited and used as an async return type in the C# asynchronous programming model.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public class Awaitable<T>

Methods

Method

Description

CancelCancel the awaitable. If the awaitable is being awaited, the awaiter will get a System.OperationCanceledException.