object Promise
- Companion
- class
Value members
Concrete methods
Creates a promise object which can be completed with a value.
Creates a promise object which can be completed with a value.
- Type Params
- T
the type of the value in the promise
- Returns
the newly created
Promise
instance
Creates an already completed Promise with the specified exception.
Creates an already completed Promise with the specified exception.
- Type Params
- T
the type of the value in the promise
- Returns
the newly created
Promise
instance
Creates an already completed Promise with the specified result or exception.
Creates an already completed Promise with the specified result or exception.
- Type Params
- T
the type of the value in the promise
- Returns
the newly created
Promise
instance