default

reactives.default
object default

Event and Signal represent different time-changing values, commonly referred to as reactives. Use Var to create signal sources and Evt to create event sources.

Events and signals can be created from other reactives by using combinators, signals additionally can be created using Signal expressions.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
default.type

Members list

Grouped members

update

def transaction[R](initialWrites: of[State]*)(admissionPhase: AdmissionTicket[State] ?=> R): R

Executes a transaction.

Executes a transaction.

Type parameters

R

Result type of the admission function

Value parameters

admissionPhase

An admission function that may reactives.operator.Evt.admit / reactives.operator.Var.admit arbitrary input changes that will be applied as an atomic transaction at the end.

initialWrites

All inputs that might be changed by the transaction

Attributes

Returns

Result of the admission function

Example

transaction(a, b){ implicit at => a.set(5); b.set(1); at.now(a) }

def transactionWithWrapup[I, R](iw: of[State]*)(ap: AdmissionTicket[State] => I)(wrapUp: (I, Transaction[State]) => R): R

Executes a transaction with WrapUpPhase.

Executes a transaction with WrapUpPhase.

Attributes

See also

transaction

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Exports

Defined exports

final val Event: Event
Exported from operator
final type Event = Event
Exported from operator
final val Evt: Evt
Exported from operator
final type Evt = Evt
Exported from operator
final val Flatten: Flatten
Exported from operator
final type Flatten = Flatten
Exported from operator
final val Fold: Fold
Exported from operator
final val Signal: Signal
Exported from operator
final type Signal = Signal
Exported from operator
final val Var: Var
Exported from operator
final type Var = Var
Exported from operator
inline def current[S](using fs: FoldState[S]): S
Exported from Fold