Awaitable<T>
Custom Unity type that can be awaited and used as an async return type in the C# asynchronous programming model.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public class Awaitable<T>
Methods
Method | Description |
|---|---|
| Cancel | Cancel the awaitable. If the awaitable is being awaited, the awaiter will get a System.OperationCanceledException. |