JSFuture
@JSType class JSFuture[T](val executorOrUndef: UndefOr[Function2[Function1[T | Thenable[T], _], Function1[Any, _], _]], val futureOrUndef: UndefOr[Future[T]]) extends Promise[T]
class Promise[T]
trait Thenable[T]
class Object
trait Any
class Object
trait Matchable
class Any
Value members
Concrete methods
Inherited methods
def `then`[B >: T](onFulfilled: Unit, onRejected: UndefOr[Function1[Any, B | Thenable[B]]]): Promise[B]
- Inherited from
- Promise
def `then`[B](onFulfilled: Function1[T, B | Thenable[B]], onRejected: UndefOr[Function1[Any, B | Thenable[B]]]): Promise[B]
- Inherited from
- Promise