object AsyncCallback

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

Type Members

  1. final case class Barrier(waitForCompletion: AsyncCallback[Unit], complete: Callback) extends Product with Serializable

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. def apply[A](f: ((Try[A]) => Callback) => Callback): AsyncCallback[A]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. implicit def asyncCallbackCovariance[A, B >: A](c: AsyncCallback[A]): AsyncCallback[B]
    Annotations
    @inline()
  7. lazy val barrier: CallbackTo[Barrier]

    A synchronisation aid that allows you to wait for another async process to complete.

  8. def byName[A](f: => AsyncCallback[A]): AsyncCallback[A]

    Callback that is recreated each time it is used.

    Callback that is recreated each time it is used.

    https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_name

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. def const[A](t: Try[A]): AsyncCallback[A]
  11. def delay[A](a: => A): AsyncCallback[A]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def first[A](f: ((Try[A]) => Callback) => Callback): AsyncCallback[A]
  15. def fromCallbackToFuture[A](c: CallbackTo[Future[A]])(implicit ec: ExecutionContext): AsyncCallback[A]
  16. def fromCallbackToJsPromise[A](c: CallbackTo[Promise[A]]): AsyncCallback[A]
  17. def fromFuture[A](fa: => Future[A])(implicit ec: ExecutionContext): AsyncCallback[A]
  18. def fromJsPromise[A](pa: => Thenable[A]): AsyncCallback[A]
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def init[A, B](f: ((Try[B]) => Callback) => CallbackTo[A]): CallbackTo[(A, AsyncCallback[B])]
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def lazily[A](f: => AsyncCallback[A]): AsyncCallback[A]

    Callback that isn't created until the first time it is used, after which it is reused.

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def never[A]: AsyncCallback[A]

    AsyncCallback that never completes.

  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def promise[A]: CallbackTo[(AsyncCallback[A], (Try[A]) => Callback)]

    Create an AsyncCallback and separately provide the completion function.

    Create an AsyncCallback and separately provide the completion function.

    This is like Scala's promise, not the JS promise which is more like Scala's Future.

  29. def pure[A](a: A): AsyncCallback[A]
  30. def sequence[T[X] <: IterableOnce[X], A](tca: => T[AsyncCallback[A]])(implicit cbf: BuildFrom[T[AsyncCallback[A]], A, T[A]]): AsyncCallback[T[A]]

    Sequence stdlib T over AsyncCallback.

    Sequence stdlib T over AsyncCallback. Co-sequence AsyncCallback over stdlib T.

  31. def sequenceOption[A](oca: => Option[AsyncCallback[A]]): AsyncCallback[Option[A]]

    Sequence Option over AsyncCallback.

    Sequence Option over AsyncCallback. Co-sequence AsyncCallback over Option.

  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def tailrec[A, B](a: A)(f: (A) => AsyncCallback[Either[A, B]]): AsyncCallback[B]

    Not literally tail-recursive because AsyncCallback is continuation-based, but this utility in this shape may still be useful.

  34. def throwException[A](t: Throwable): AsyncCallback[A]
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def traverse[T[X] <: IterableOnce[X], A, B](ta: => T[A])(f: (A) => AsyncCallback[B])(implicit cbf: BuildFrom[T[A], B, T[B]]): AsyncCallback[T[B]]

    Traverse stdlib T over AsyncCallback.

    Traverse stdlib T over AsyncCallback. Distribute AsyncCallback over stdlib T.

  37. def traverseOption[A, B](oa: => Option[A])(f: (A) => AsyncCallback[B]): AsyncCallback[Option[B]]

    Traverse Option over AsyncCallback.

    Traverse Option over AsyncCallback. Distribute AsyncCallback over Option.

  38. val unit: AsyncCallback[Unit]
  39. def viaCallback(onCompletion: (Callback) => Callback): AsyncCallback[Unit]
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. 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.

  2. def fromCallback[A](c: CallbackTo[A]): AsyncCallback[A]
    Annotations
    @deprecated
    Deprecated

    (Since version ) Use c.asAsyncCallback

  3. def point[A](a: => A): AsyncCallback[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 1.7.0) Use AsyncCallback.delay

Inherited from AnyRef

Inherited from Any

Ungrouped