ThunkM

final class ThunkM[A](next: () => A, val reusability: Reusability[A]) extends Root[A]

The value of a zero-param function.

The value of a zero-param function.

The M in ThunkM denotes "Manual refresh", meaning that the value will not update until you explicitly call refresh().

class Root[A]
class Px[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def refresh(): Unit
override def toString: String
Definition Classes
Any
override def value(): A
Definition Classes

Inherited methods

final protected def _updateValue(a: A): Unit
Inherited from
Root
final protected def _value(): A
Inherited from
Root
def extract(e: Extract[A]): A

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.

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.

Inherited from
Px
def flatMap[B](f: A => Px[B]): Derivative[B]
Inherited from
Px
def map[B](f: A => B): Derivative[B]
Inherited from
Px
final override def peek: A
Definition Classes
Root -> Px
Inherited from
Root
final override def rev: Int
Definition Classes
Root -> Px
Inherited from
Root
protected def setMaybe(a: A): Unit
Inherited from
Root
final def toCallback[F[_]](F: Sync[F]): F[A]
Inherited from
Px
final def valueSince(r: Int): Option[A]
Inherited from
Px

Inherited fields

protected var _rev: Int
Inherited from
Root