Packages

o

io.scalajs.util

PromiseHelper

object PromiseHelper

Promise Helper

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PromiseHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def promiseCallback0(f: (Function0[Any]) => Unit): Future[Unit]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  15. def promiseCallback1[A](f: (Function1[A, Any]) => Unit): Future[A]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  16. def promiseCallback2[A, B](f: (Function2[A, B, Any]) => Unit): Future[(A, B)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  17. def promiseCallback3[A, B, C](f: (Function3[A, B, C, Any]) => Unit): Future[(A, B, C)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  18. def promiseCallback4[A, B, C, D](f: (Function4[A, B, C, D, Any]) => Unit): Future[(A, B, C, D)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  19. def promiseCallback5[A, B, C, D, E](f: (Function5[A, B, C, D, E, Any]) => Unit): Future[(A, B, C, D, E)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  20. def promiseCallback6[A, B, C, D, E, F](f: (Function6[A, B, C, D, E, F, Any]) => Unit): Future[(A, B, C, D, E, F)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  21. def promiseCallback7[A, B, C, D, E, F, G](f: (Function7[A, B, C, D, E, F, G, Any]) => Unit): Future[(A, B, C, D, E, F, G)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  22. def promiseCallback8[A, B, C, D, E, F, G, H](f: (Function8[A, B, C, D, E, F, G, H, Any]) => Unit): Future[(A, B, C, D, E, F, G, H)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  23. def promiseWithError0[Z](f: (Function1[Z, Any]) => Unit): Future[Unit]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  24. def promiseWithError1[Z, A](f: (Function2[Z, A, Any]) => Unit): Future[A]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  25. def promiseWithError2[Z, A, B](f: (Function3[Z, A, B, Any]) => Unit): Future[(A, B)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  26. def promiseWithError3[Z, A, B, C](f: (Function4[Z, A, B, C, Any]) => Unit): Future[(A, B, C)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  27. def promiseWithError4[Z, A, B, C, D](f: (Function5[Z, A, B, C, D, Any]) => Unit): Future[(A, B, C, D)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  28. def promiseWithError5[Z, A, B, C, D, E](f: (Function6[Z, A, B, C, D, E, Any]) => Unit): Future[(A, B, C, D, E)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  29. def promiseWithError6[Z, A, B, C, D, E, F](f: (Function7[Z, A, B, C, D, E, F, Any]) => Unit): Future[(A, B, C, D, E, F)]

    Converts a JavaScript-style callback to a Scala.js promise

    Converts a JavaScript-style callback to a Scala.js promise

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  30. def promiseWithErrorAsBoolean[Z](f: (Function1[Z, Any]) => Unit): Future[Boolean]

    Converts a JavaScript-style callback to a Scala.js promise.

    Converts a JavaScript-style callback to a Scala.js promise. Promise always success and contains true if callback does not receive error, otherwise contains false.

    f

    the given callback function

    returns

    a Scala.js promise

    Annotations
    @inline()
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped