Object/Class

japgolly.scalajs.react

AsyncCallback

Related Docs: class AsyncCallback | package react

Permalink

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[A](f: ((Try[A]) ⇒ Callback) ⇒ Callback): AsyncCallback[A]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. implicit def asyncCallbackCovariance[A, B >: A](c: AsyncCallback[A]): AsyncCallback[B]

    Permalink
    Annotations
    @inline()
  7. def byName[A](f: ⇒ AsyncCallback[A]): AsyncCallback[A]

    Permalink

    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

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def const[A](t: Try[A]): AsyncCallback[A]

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def first[A](f: ((Try[A]) ⇒ Callback) ⇒ Callback): AsyncCallback[A]

    Permalink
  14. def fromCallbackToFuture[A](c: CallbackTo[Future[A]])(implicit ec: ExecutionContext): AsyncCallback[A]

    Permalink
  15. def fromCallbackToJsPromise[A](c: CallbackTo[Promise[A]]): AsyncCallback[A]

    Permalink
  16. def fromFuture[A](fa: ⇒ Future[A])(implicit ec: ExecutionContext): AsyncCallback[A]

    Permalink
  17. def fromJsPromise[A](pa: ⇒ Thenable[A]): AsyncCallback[A]

    Permalink
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def init[A, B](f: ((Try[B]) ⇒ Callback) ⇒ CallbackTo[A]): CallbackTo[(A, AsyncCallback[B])]

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def lazily[A](f: ⇒ AsyncCallback[A]): AsyncCallback[A]

    Permalink

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

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def point[A](a: ⇒ A): AsyncCallback[A]

    Permalink
  27. def promise[A]: CallbackTo[(AsyncCallback[A], (Try[A]) ⇒ Callback)]

    Permalink

    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.

  28. def pure[A](a: A): AsyncCallback[A]

    Permalink
  29. def sequence[T[X] <: TraversableOnce[X], A](tca: ⇒ T[AsyncCallback[A]])(implicit cbf: CanBuildFrom[T[AsyncCallback[A]], A, T[A]]): AsyncCallback[T[A]]

    Permalink

    Sequence stdlib T over AsyncCallback.

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

  30. def sequenceOption[A](oca: ⇒ Option[AsyncCallback[A]]): AsyncCallback[Option[A]]

    Permalink

    Sequence Option over AsyncCallback.

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

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def tailrec[A, B](a: A)(f: (A) ⇒ AsyncCallback[Either[A, B]]): AsyncCallback[B]

    Permalink

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

  33. def throwException[A](t: Throwable): AsyncCallback[A]

    Permalink
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def traverse[T[X] <: TraversableOnce[X], A, B](ta: ⇒ T[A])(f: (A) ⇒ AsyncCallback[B])(implicit cbf: CanBuildFrom[T[A], B, T[B]]): AsyncCallback[T[B]]

    Permalink

    Traverse stdlib T over AsyncCallback.

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

  36. def traverseOption[A, B](oa: ⇒ Option[A])(f: (A) ⇒ AsyncCallback[B]): AsyncCallback[Option[B]]

    Permalink

    Traverse Option over AsyncCallback.

    Traverse Option over AsyncCallback. Distribute AsyncCallback over Option.

  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def fromCallback[A](c: CallbackTo[A]): AsyncCallback[A]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version ) Use c.asAsyncCallback

Inherited from AnyRef

Inherited from Any

Ungrouped