Promise

Instance of

Class

Inherits from

Object

Description

Represents an operation that executes asynchronously and its value or error that raised during its execution.

Example

Timeout(20).then(() => console.write(20, " "););
await Timeout(30);
console.write(30, " ");

Expected output

20 30 

Members

Inherited members

Properties

  • classPrototype
  • tick