Derivative

sealed abstract class Derivative[A] extends Px[A]
class Px[A]
class Object
trait Matchable
class Any
class DerivativeBase[A, B, C]
class FlatMap[A, B]
class Map[A, B]

Value members

Concrete methods

final def withReuse(implicit ev: Reusability[A]): Px[A]

In addition to updating when the underlying Px changes, this will also check its own result and halt updates if reusable.

In addition to updating when the underlying Px changes, this will also check its own result and halt updates if reusable.

Inherited methods

def extract(implicit 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
def peek: A

Get the last used value without updating.

Get the last used value without updating.

Inherited from:
Px
def rev: Int

Revision of its value. Increments when value changes.

Revision of its value. Increments when value changes.

Inherited from:
Px
final def toCallback[F[_]](implicit F: Sync[F]): F[A]
Inherited from:
Px
def value(): A

Get the latest value, updating itself if necessary.

Get the latest value, updating itself if necessary.

Inherited from:
Px
final def valueSince(r: Int): Option[A]
Inherited from:
Px