PromiseLike

@native @JSType trait PromiseLike[T] extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def `then`[TResult1, TResult2](): Thenable[TResult1 | TResult2]

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]

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object