PromiseLike
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
Value members
Concrete methods
Attaches callbacks for the resolution and/or rejection of the Promise.
Attaches callbacks for the resolution and/or rejection of the Promise.
- Value Params
- onfulfilled
The callback to execute when the Promise is resolved.
- onrejected
The callback to execute when the Promise is rejected.
def `then`[TResult1, TResult2](onfulfilled: Function1[T, TResult1 | Thenable[TResult1]]): Thenable[TResult1 | TResult2]
def `then`[TResult1, TResult2](onfulfilled: Function1[T, TResult1 | Thenable[TResult1]], onrejected: Function1[Any, TResult2 | Thenable[TResult2]]): Thenable[TResult1 | TResult2]
def `then`[TResult1, TResult2](onfulfilled: Null, onrejected: Function1[Any, TResult2 | Thenable[TResult2]]): Thenable[TResult1 | TResult2]
def `then`[TResult1, TResult2](onfulfilled: Unit, onrejected: Function1[Any, TResult2 | Thenable[TResult2]]): Thenable[TResult1 | TResult2]