Packages

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 class Barrier extends AnyRef
  2. final class CountDownLatch extends AnyRef
  3. final case class Forked[+A](await: AsyncCallback[A], isComplete: CallbackTo[Boolean]) extends Product with Serializable
  4. final class Mutex extends AnyRef
  5. final class ReadWriteMutex extends AnyRef
  6. final class Ref[A] extends AnyRef
  7. final class State extends AnyRef
  8. type UnderlyingRepr[+A] = (State) => ((Try[A]) => Callback) => Callback

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. def awaitAll(as: AsyncCallback[Any]*): AsyncCallback[Unit]
  7. lazy val barrier: CallbackTo[Barrier]

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

  8. def cancel: AsyncCallback[Unit]
  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 countDownLatch(count: Int): CallbackTo[CountDownLatch]

    A synchronization aid that allows you to wait until a set of async processes completes.

  12. def debounce(delay: FiniteDuration): AsyncCallback[Unit]

    Creates an debounce boundary.

    Creates an debounce boundary.

    Save it as a val somewhere because it relies on internal state that must be reused.

    Annotations
    @inline()
  13. def debounce(delay: Duration): AsyncCallback[Unit]

    Creates an debounce boundary.

    Creates an debounce boundary.

    Save it as a val somewhere because it relies on internal state that must be reused.

    Annotations
    @inline()
  14. def debounceMs(delayMs: Long): AsyncCallback[Unit]

    Creates an debounce boundary.

    Creates an debounce boundary.

    Save it as a val somewhere because it relies on internal state that must be reused.

    Annotations
    @inline()
  15. def delay[A](a: => A): AsyncCallback[A]
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def first[A](f: ((Try[A]) => Callback) => Callback): AsyncCallback[A]
  19. def fromCallbackToFuture[A](c: CallbackTo[Future[A]])(implicit ec: ExecutionContext): AsyncCallback[A]
  20. def fromCallbackToJsPromise[A](c: CallbackTo[Promise[A]]): AsyncCallback[A]
  21. def fromFuture[A](fa: => Future[A])(implicit ec: ExecutionContext): AsyncCallback[A]
  22. def fromJsPromise[A](pa: => Thenable[A]): AsyncCallback[A]
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def init[A, B](f: ((Try[B]) => Callback) => CallbackTo[A]): CallbackTo[(A, AsyncCallback[B])]
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. 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.

  28. def mutex: CallbackTo[Mutex]

    Creates a new (non-reentrant) mutex.

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

    AsyncCallback that never completes.

  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. 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.

  34. def pure[A](a: A): AsyncCallback[A]
  35. def readWriteMutex: CallbackTo[ReadWriteMutex]

    Creates a new (non-reentrant) read/write mutex.

  36. def ref[A](allowStaleReads: Boolean = false, atomicWrites: Boolean = true): CallbackTo[Ref[A]]
  37. def ref[A]: CallbackTo[Ref[A]]
    Annotations
    @inline()
  38. def sequence[T[X] <: Iterable[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.

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

    Sequence Option over AsyncCallback.

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

  40. def sequenceOption_[A](oca: => Option[AsyncCallback[A]]): AsyncCallback[Unit]

    Same as sequenceOption() except avoids combining return values.

  41. def sequence_[T[X] <: Iterable[X], A](tca: => T[AsyncCallback[A]]): AsyncCallback[Unit]

    Same as sequence() except avoids combining return values.

  42. def suspend[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

  43. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  44. 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.

  45. def throwException[A](t: => Throwable): AsyncCallback[A]
  46. def throwExceptionWhenDefined(o: => Option[Throwable]): AsyncCallback[Unit]
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. def traverse[T[X] <: Iterable[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.

  49. 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.

  50. def traverseOption_[A, B](oa: => Option[A])(f: (A) => AsyncCallback[B]): AsyncCallback[Unit]

    Same as traverseOption() except avoids combining return values.

  51. def traverse_[T[X] <: Iterable[X], A, B](ta: => T[A])(f: (A) => AsyncCallback[B]): AsyncCallback[Unit]

    Same as traverse() except avoids combining return values.

  52. val unit: AsyncCallback[Unit]
  53. def viaCallback(onCompletion: (Callback) => Callback): AsyncCallback[Unit]
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. 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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use AsyncCallback.suspend

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  3. def fromCallback[A](c: CallbackTo[A]): AsyncCallback[A]
    Annotations
    @deprecated
    Deprecated

    (Since version ) Use c.asAsyncCallback

  4. 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