Attributes
- Companion
- trait
- Source
- Promise.scala
- Graph
-
- Supertypes
- Self type
-
Promise.type
Members list
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 parameters
- T
-
the type of the value in the promise
Attributes
- Returns
-
the newly created
Promiseinstance - Source
- Promise.scala
Creates an already completed Promise with the specified exception.
Creates an already completed Promise with the specified exception.
Type parameters
- T
-
the type of the value in the promise
Value parameters
- exception
-
the throwable to fail the promise with
Attributes
- Returns
-
the newly created
Promiseinstance - Source
- Promise.scala
Creates an already completed Promise with the specified result or exception.
Creates an already completed Promise with the specified result or exception.
Type parameters
- T
-
the type of the value in the promise
Value parameters
- result
-
the
Tryvalue (success or failure) to complete the promise with
Attributes
- Returns
-
the newly created
Promiseinstance - Source
- Promise.scala
Creates an already completed Promise with the specified result.
Creates an already completed Promise with the specified result.
Type parameters
- T
-
the type of the value in the promise
Value parameters
- result
-
the successful value to complete the promise with
Attributes
- Returns
-
the newly created
Promiseinstance - Source
- Promise.scala