Class

japgolly.scalajs.react.extra.Px

ThunkA

Related Doc: package Px

Permalink

final class ThunkA[A] extends Root[A]

The value of a zero-param function.

The A in ThunkA denotes "Auto refresh", meaning that the function will be called every time the value is requested, and the value updated if necessary.

Linear Supertypes
Root[A], Px[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ThunkA
  2. Root
  3. Px
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ThunkA(next: () ⇒ A, ignoreChange: (A, A) ⇒ Boolean)

    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. var _rev: Int

    Permalink
    Attributes
    protected
    Definition Classes
    Root
  5. final def _updateValue(a: A): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Root
  6. final def _value(): A

    Permalink
    Attributes
    protected
    Definition Classes
    Root
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. macro def extract: A

    Permalink

    If this Px contains a function, it can be extracted and the Px dropped from the signature.

    If this Px contains a function, it can be extracted and the Px dropped from the signature. Every time the function is invoked it will use the latest value of this Px, even if you don't explicitly hold a reference to it anymore.

    Example. From a Px[Int => String], an Int => String can be extracted.

    Definition Classes
    Px
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[B](f: (A) ⇒ Px[B]): Derivative[B]

    Permalink
    Definition Classes
    Px
  14. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. val ignoreChange: (A, A) ⇒ Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    ThunkARoot
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def map[B](f: (A) ⇒ B): Derivative[B]

    Permalink
    Definition Classes
    Px
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def peek: A

    Permalink

    Get the last used value without updating.

    Get the last used value without updating.

    Definition Classes
    RootPx
  23. final def rev: Int

    Permalink

    Revision of its value.

    Revision of its value. Increments when value changes.

    Definition Classes
    RootPx
  24. def setMaybe(a: A): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Root
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    ThunkA → AnyRef → Any
  27. def value(): A

    Permalink

    Get the latest value, updating itself if necessary.

    Get the latest value, updating itself if necessary.

    Definition Classes
    ThunkAPx
  28. final def valueSince(r: Int): Option[A]

    Permalink
    Definition Classes
    Px
  29. final def wait(): Unit

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

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

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

Inherited from Root[A]

Inherited from Px[A]

Inherited from AnyRef

Inherited from Any

Ungrouped