Skip to main content

Await class

📖 Description

The Await class is used to indicate when an asynchronous operation completes.

🗃️ Fields


🏷️ isAlive

Verifies if the await pointer is alive and still usable (not fulfilled).

Type

boolean

▶️ Methods


🔧 cancel

Cancels an await operation.

Signature

cancel(): boolean

Return value

Returns true if the await loop is terminated.


🔧 done

Fulfills and completes an await operation.

Signature

done(): boolean

Return value

Returns true if the await loop is terminated.