Latch

final case class Latch[A](in: Ex[A], trig: Trig) extends Ex[A]

Latches the expression based on the trigger argument. The initial state of the returned expression corresponds to the initial state of the input expression. Subsequent values are updated and cached only when a trigger occurs.

Companion:
object
trait Serializable
trait Ex[A]
trait Flow
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Types

type Repr[T <: Txn[T]] = IExpr[T, A]

Value members

Inherited methods

final def expand[T <: Txn[LazyRef(...)]](implicit ctx: Context[T], tx: T): Repr[T]
Inherited from:
Lazy
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Inherited fields

@transient
final protected val ref: Object
Inherited from:
Lazy