Packages

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

Type Members

  1. final class InvariantOps[A] extends AnyVal
  2. final class LiftTraverseDsl[A, B] extends AnyVal
  3. sealed trait MapGuard[A] extends AnyRef

    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

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. implicit def InvariantOps[A](c: CallbackTo[A]): InvariantOps[A]
    Annotations
    @inline()
  5. implicit def MapGuard[A]: MapGuard[A]
    Annotations
    @inline()
  6. def apply[A](f: => A): CallbackTo[A]
    Annotations
    @inline()
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def confirm(message: String): CallbackTo[Boolean]

    Displays a modal dialog with a message and two buttons, OK and Cancel.

    Displays a modal dialog with a message and two buttons, OK and Cancel.

    message

    a string to be displayed in the dialog.

    returns

    A boolean value indicating whether OK or Cancel was selected (true means OK).

  10. lazy val currentTimeMillis: CallbackTo[Long]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def fromJsFn[A](f: Function0[A]): CallbackTo[A]
  14. def future[A](f: => Future[CallbackTo[A]])(implicit ec: ExecutionContext): CallbackTo[Future[A]]

    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.

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def lazily[A](f: => CallbackTo[A]): CallbackTo[A]

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

  19. def lift[A](f: () => A): CallbackTo[A]
  20. def liftTraverse[A, B](f: (A) => CallbackTo[B]): LiftTraverseDsl[A, B]
  21. lazy val nanoTime: CallbackTo[Long]
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def newJsPromise[A]: CallbackTo[(Promise[A], (Try[A]) => Callback)]
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. lazy val now: CallbackTo[Instant]
  27. def prompt(message: String, default: String): CallbackTo[Option[String]]

    Displays a dialog with an optional message prompting the user to input some text.

    Displays a dialog with an optional message prompting the user to input some text.

    message

    a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.

    default

    a string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.

    returns

    Some string comprising the text entered by the user, or None.

  28. def prompt(message: String): CallbackTo[Option[String]]

    Displays a dialog with an optional message prompting the user to input some text.

    Displays a dialog with an optional message prompting the user to input some text.

    message

    a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.

    returns

    Some string comprising the text entered by the user, or None.

  29. def prompt: CallbackTo[Option[String]]

    Displays a dialog with an optional message prompting the user to input some text.

    Displays a dialog with an optional message prompting the user to input some text.

    returns

    Some string comprising the text entered by the user, or None.

  30. def pure[A](a: A): CallbackTo[A]
  31. def retryUntilRight[L, R](attempt: CallbackTo[Either[L, R]])(onLeft: (L) => Callback): CallbackTo[R]
  32. def sequence[T[X] <: Iterable[X], A](tca: => T[CallbackTo[A]])(implicit cbf: BuildFrom[T[CallbackTo[A]], A, T[A]]): CallbackTo[T[A]]

    Sequence stdlib T over CallbackTo.

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

  33. def sequenceOption[A](oca: => Option[CallbackTo[A]]): CallbackTo[Option[A]]

    Sequence Option over CallbackTo.

    Sequence Option over CallbackTo. Co-sequence CallbackTo over Option.

  34. def suspend[A](f: => CallbackTo[A]): CallbackTo[A]

    Callback that is recreated each time it is used.

  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def tailrec[A, B](a: A)(f: (A) => CallbackTo[Either[A, B]]): CallbackTo[B]

    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.

  37. def throwException[A](t: Throwable): CallbackTo[A]
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. def traverse[T[X] <: Iterable[X], A, B](ta: => T[A])(f: (A) => CallbackTo[B])(implicit cbf: BuildFrom[T[A], B, T[B]]): CallbackTo[T[B]]

    Traverse stdlib T over CallbackTo.

    Traverse stdlib T over CallbackTo. Distribute CallbackTo over stdlib T.

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

    Traverse Option over CallbackTo.

    Traverse Option over CallbackTo. Distribute CallbackTo over Option.

  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. def windowOpen(url: String, noopener: Boolean = true, focus: Boolean = true): CallbackTo[Window]

    When executed, opens a new window (tab) to a given URL.

    When executed, opens a new window (tab) to a given URL.

    noopener

    See https://developers.google.com/web/tools/lighthouse/audits/noopener

    focus

    Whether or not to focus the new window.

Deprecated Value Members

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

    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]

    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 byName[A](f: => CallbackTo[A]): CallbackTo[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 CallbackTo.suspend

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

Inherited from AnyRef

Inherited from Any

Ungrouped