Object

japgolly.scalajs.react

Callback

Related Doc: package react

Permalink

object Callback

A callback with no return value. Equivalent to () => Unit.

See also

CallbackTo

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

Type Members

  1. final class ResultGuard[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )

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. object ResultGuard

    Permalink
  5. def alert(message: String): Callback

    Permalink

    Convenience for calling dom.alert.

  6. def apply[U](f: ⇒ U)(implicit arg0: ResultGuard[U]): Callback

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def assert(test: Boolean, message: String, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.assert.

  9. def byName(f: ⇒ Callback): Callback

    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

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val empty: Callback

    Permalink

    A callback that does nothing.

  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def future[A](f: ⇒ Future[CallbackTo[A]])(implicit ec: ExecutionContext): Callback

    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.

    The result is discarded. To retain it, use CallbackTo.future instead.

    Because the Future is discarded, when an exception causes it to fail, the exception is re-thrown. If you want the exception to be ignored or handled differently, use CallbackTo.future instead and then .void to discard the future and turn the result into a Callback.

    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.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def info(message: Any, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.info.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def lazily(f: ⇒ Callback): Callback

    Permalink

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

  21. def lift(f: () ⇒ Unit): Callback

    Permalink
    Annotations
    @inline()
  22. def log(message: Any, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.log.

  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 sequence[T[X] <: TraversableOnce[X]](tca: ⇒ T[Callback]): Callback

    Permalink
  27. def sequenceO[A](oca: ⇒ Option[Callback]): Callback

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

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def traverse[T[X] <: TraversableOnce[X], A](ta: ⇒ T[A])(f: (A) ⇒ Callback): Callback

    Permalink
  31. def traverseO[A](oa: ⇒ Option[A])(f: (A) ⇒ Callback): Callback

    Permalink
  32. def unless(cond: Boolean)(c: ⇒ Callback): Callback

    Permalink

    Convenience for applying a condition to a callback, and returning Callback.empty when the condition is already satisfied.

    Convenience for applying a condition to a callback, and returning Callback.empty when the condition is already satisfied.

    Notice the condition is strict. If non-strictness is desired use callback.unless(cond).

    cond

    The condition required to be false for the callback to execute.

  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def warn(message: Any, optionalParams: Any*): Callback

    Permalink

    Convenience for calling dom.console.warn.

  37. def when(cond: Boolean)(c: ⇒ Callback): Callback

    Permalink

    Convenience for applying a condition to a callback, and returning Callback.empty when the condition isn't satisfied.

    Convenience for applying a condition to a callback, and returning Callback.empty when the condition isn't satisfied.

    Notice the condition is strict. If non-strictness is desired use callback.when(cond).

    cond

    The condition required to be true for the callback to execute.

Deprecated Value Members

  1. def TODO(reason: ⇒ String): Callback

    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: Callback

    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 ifTrue(pred: Boolean, c: ⇒ Callback): Callback

    Permalink

    Convenience for applying a condition to a callback, and returning Callback.empty when the condition isn't satisfied.

    Convenience for applying a condition to a callback, and returning Callback.empty when the condition isn't satisfied.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.0) Use when() or unless().

Inherited from AnyRef

Inherited from Any

Ungrouped