trait PromiseConstructor extends scala.scalajs.js.Object with StObject with Instantiable1[Function2[Function1[|[scala.scalajs.js.Object, Thenable[scala.scalajs.js.Object]], Unit], Function1[UndefOr[Any], Unit], Unit], scala.scalajs.js.Promise[scala.scalajs.js.Object]]
- Annotations
- @JSType() @native()
- Source
- PromiseConstructor.scala
- Alphabetic
- By Inheritance
- PromiseConstructor
- Instantiable1
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- def all[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](values: Tuple10[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]], |[T4, Thenable[T4]], |[T5, Thenable[T5]], |[T6, Thenable[T6]], |[T7, Thenable[T7]], |[T8, Thenable[T8]], |[T9, Thenable[T9]], |[T10, Thenable[T10]]]): scala.scalajs.js.Promise[Tuple10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2, T3, T4, T5, T6, T7, T8, T9](values: Tuple9[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]], |[T4, Thenable[T4]], |[T5, Thenable[T5]], |[T6, Thenable[T6]], |[T7, Thenable[T7]], |[T8, Thenable[T8]], |[T9, Thenable[T9]]]): scala.scalajs.js.Promise[Tuple9[T1, T2, T3, T4, T5, T6, T7, T8, T9]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2, T3, T4, T5, T6, T7, T8](values: Tuple8[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]], |[T4, Thenable[T4]], |[T5, Thenable[T5]], |[T6, Thenable[T6]], |[T7, Thenable[T7]], |[T8, Thenable[T8]]]): scala.scalajs.js.Promise[Tuple8[T1, T2, T3, T4, T5, T6, T7, T8]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2, T3, T4, T5, T6, T7](values: Tuple7[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]], |[T4, Thenable[T4]], |[T5, Thenable[T5]], |[T6, Thenable[T6]], |[T7, Thenable[T7]]]): scala.scalajs.js.Promise[Tuple7[T1, T2, T3, T4, T5, T6, T7]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2, T3, T4, T5, T6](values: Tuple6[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]], |[T4, Thenable[T4]], |[T5, Thenable[T5]], |[T6, Thenable[T6]]]): scala.scalajs.js.Promise[Tuple6[T1, T2, T3, T4, T5, T6]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2, T3, T4, T5](values: Tuple5[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]], |[T4, Thenable[T4]], |[T5, Thenable[T5]]]): scala.scalajs.js.Promise[Tuple5[T1, T2, T3, T4, T5]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2, T3, T4](values: Tuple4[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]], |[T4, Thenable[T4]]]): scala.scalajs.js.Promise[Tuple4[T1, T2, T3, T4]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2, T3](values: Tuple3[|[T1, Thenable[T1]], |[T2, Thenable[T2]], |[T3, Thenable[T3]]]): scala.scalajs.js.Promise[Tuple3[T1, T2, T3]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T1, T2](values: Tuple2[|[T1, Thenable[T1]], |[T2, Thenable[T2]]]): scala.scalajs.js.Promise[Tuple2[T1, T2]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def all[T](values: scala.scalajs.js.Iterable[|[T, Thenable[T]]]): scala.scalajs.js.Promise[scala.scalajs.js.Array[T]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An iterable of Promises.
- def all[T](values: scala.scalajs.js.Array[|[T, Thenable[T]]]): scala.scalajs.js.Promise[scala.scalajs.js.Array[T]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected.
- values
An array of Promises.
- def allSettled[T](values: scala.scalajs.js.Iterable[T]): scala.scalajs.js.Promise[scala.scalajs.js.Array[PromiseSettledResult[T]]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
- values
An array of Promises.
- def allSettled[T](values: T): scala.scalajs.js.Promise[stdStrings.PromiseConstructor with TopLevel[Any]]
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
- values
An array of Promises.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def race[T](values: scala.scalajs.js.Iterable[|[T, Thenable[T]]]): scala.scalajs.js.Promise[T]
Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected.
Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected.
- values
An iterable of Promises.
- def race[T](values: scala.scalajs.js.Array[T]): scala.scalajs.js.Promise[T]
Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected.
Creates a Promise that is resolved or rejected when any of the provided Promises are resolved or rejected.
- values
An array of Promises.
- def reject[T](reason: Any): scala.scalajs.js.Promise[T]
- def reject[T](): scala.scalajs.js.Promise[T]
Creates a new rejected promise for the provided reason.
- def resolve[T](value: Thenable[T]): scala.scalajs.js.Promise[T]
- def resolve[T](value: T): scala.scalajs.js.Promise[T]
Creates a new resolved promise for the provided value.
Creates a new resolved promise for the provided value.
- value
A promise.
- def resolve(): scala.scalajs.js.Promise[Unit]
Creates a new resolved promise.
- val species: PromiseConstructor
- Annotations
- @JSName(js.Symbol.species)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated