ドキュメント

Unity Engine

Unity Engine

AwaitableCompletionSource<T>

Objects allowing to control completion of an Awaitable object from user code.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Properties

Property

Description

AwaitableGet the awaitable controlled by the completion source.

Methods

Method

Description

ResetReset the completion source (this will set the Awaitable property to a new Awaitable object).
SetCanceledRaise cancellation.
SetExceptionRaise completion with an exception.
SetResultRaise completion.
TrySetCanceledRaise cancellation (returns false if the awaitable was already completed or canceled).
TrySetExceptionRaise completion with an exception.
TrySetResultRaise the awaitable completion.