Object/Class

japgolly.scalajs.react

CallbackTo

Related Docs: class CallbackTo | package react

Permalink

object CallbackTo

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

Type Members

  1. final class LiftTraverseDsl[A, B] extends AnyVal

    Permalink
  2. sealed trait MapGuard[A] extends AnyRef

    Permalink

    Prevents scalac discarding the result of a map function when the final result is Callback.

    Prevents scalac discarding the result of a map function when the final result is Callback.

    See https://github.com/japgolly/scalajs-react/issues/256

    Since

    0.11.0

  3. final class ReactExt_CallbackToFuture[A] extends AnyVal

    Permalink

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. implicit def MapGuard[A]: MapGuard[A]

    Permalink
    Annotations
    @inline()
  5. def apply[A](f: ⇒ A): CallbackTo[A]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def byName[A](f: ⇒ CallbackTo[A]): CallbackTo[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. implicit def callbackCovariance[A, B >: A](c: CallbackTo[A]): CallbackTo[B]

    Permalink
    Annotations
    @inline()
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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 future[A](f: ⇒ Future[CallbackTo[A]])(implicit ec: ExecutionContext): CallbackTo[Future[A]]

    Permalink

    Wraps a Future so that it is repeatable, and so that its inner callback is run when the future completes.

    Wraps a Future so that it is repeatable, and so that its inner callback is run when the future completes.

    WARNING: Futures are scheduled to run as soon as they're created. Ensure that the argument you provide creates a new Future; don't reference an existing one.

  14. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def lazily[A](f: ⇒ CallbackTo[A]): CallbackTo[A]

    Permalink

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

  18. def lift[A](f: () ⇒ A): CallbackTo[A]

    Permalink
  19. def liftTraverse[A, B](f: (A) ⇒ CallbackTo[B]): LiftTraverseDsl[A, B]

    Permalink
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def pure[A](a: A): CallbackTo[A]

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

    Permalink
  25. def sequenceOption[A](oca: ⇒ Option[CallbackTo[A]]): CallbackTo[Option[A]]

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

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

    Permalink

    Tail-recursive callback.

    Tail-recursive callback. Uses constant stack space.

    Based on Phil Freeman's work on stack safety in PureScript, described in Stack Safety for Free.

  28. def toString(): String

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

    Permalink
  30. def traverseOption[A, B](oa: ⇒ Option[A])(f: (A) ⇒ CallbackTo[B]): CallbackTo[Option[B]]

    Permalink
  31. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def TODO[A](result: ⇒ A, reason: ⇒ String): CallbackTo[A]

    Permalink

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Unlike ??? this doesn't crash, it just prints a warning to the console.

    Also it's not really deprecated; that's just so you get a compiler warning as a reminder.

    Annotations
    @deprecated
    Deprecated

    (Since version not really deprecated)

  2. def TODO[A](result: ⇒ A): CallbackTo[A]

    Permalink

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Serves as a temporary placeholder for a callback until you supply a real implementation.

    Unlike ??? this doesn't crash, it just prints a warning to the console.

    Also it's not really deprecated; that's just so you get a compiler warning as a reminder.

    Annotations
    @deprecated
    Deprecated

    (Since version not really deprecated)

  3. def sequenceO[A](oca: ⇒ Option[CallbackTo[A]]): CallbackTo[Option[A]]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use .sequenceOption

  4. def traverseO[A, B](oa: ⇒ Option[A])(f: (A) ⇒ CallbackTo[B]): CallbackTo[Option[B]]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use .traverseOption

Inherited from AnyRef

Inherited from Any

Ungrouped