reactives.operator

Members list

Grouped members

create

object Event

Similar to reactives.operator.Signal expressions, but resulting in an event. Accessed events return options depending on whether they fire or not, and the complete result of the expression is an event as well.

Similar to reactives.operator.Signal expressions, but resulting in an event. Accessed events return options depending on whether they fire or not, and the complete result of the expression is an event as well.

Attributes

See also
Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Event.type
object Evt

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Evt.type
object Signal

A signal expression can be used to create signals accessing arbitrary other signals. Use the apply method on a signal to access its value inside of a signal expression.

A signal expression can be used to create signals accessing arbitrary other signals. Use the apply method on a signal to access its value inside of a signal expression.

val a: Signal[Int]
val b: Signal[Int]
val result: Signal[String] = Signal { a().toString + b().toString}

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Signal.type
object Var

Creates new Vars

Creates new Vars

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Var.type

Type members

Classlikes

trait Event[+T] extends MacroAccess[Option[T]], Disconnectable

Events only propagate a value when they are changing, when the system is at rest, events have no values.

Events only propagate a value when they are changing, when the system is at rest, events have no values.

Note: We hide using parameters of the API in the documentation. They are used to ensure correct creation, and you normally do not have to worry about them, except if you accidentally call the using parameter list, in which cas you may get cryptic errors. This is a scala limitation. We also hide the internal state parameter of passed and returned events.

Type parameters

T

Value type of the event occurrences.

Attributes

Companion
object
Supertypes
trait MacroAccess[Option[T]]
trait ReadAs[Option[T]]
trait ReSource
class Object
trait Matchable
class Any
Show all
Known subtypes
class Evt[T]
class Evt[T] extends Base[Pulse[T]], Source[T], Event[T]

Source events with imperative occurrences

Source events with imperative occurrences

Type parameters

S

Struct type used for the propagation of the event

T

Type returned when the event fires

Value parameters

initialState

of by the event

Attributes

Companion
object
Supertypes
trait Event[T]
trait MacroAccess[Option[T]]
trait ReadAs[Option[T]]
trait Source[T]
class Base[Pulse[T]]
trait ReSource
class Object
trait Matchable
class Any
Show all
trait Flatten[-A, R]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Flatten

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Flatten.type
object Fold

Folds when any one of a list of events occurs, if multiple events occur, every fold is executed in order.

Folds when any one of a list of events occurs, if multiple events occur, every fold is executed in order.

Example for a counter that can be reset:

 Fold(0)(
   add act { x => Fold.current + v },
   reset act { _ => 0 }
 )

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Fold.type
object FoldState

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
FoldState.type
trait Signal[+T] extends Disconnectable, MacroAccess[T], ReSource

Time changing value derived from the dependencies.

Time changing value derived from the dependencies.

Type parameters

T

Type stored by the signal

Attributes

Companion
object
Supertypes
trait MacroAccess[T]
trait ReadAs[T]
trait ReSource
class Object
trait Matchable
class Any
Show all
Known subtypes
class Var[A]
trait Source[T] extends ReSource

Attributes

Supertypes
trait ReSource
class Object
trait Matchable
class Any
Known subtypes
class Evt[T]
class Var[A]
class Var[A] extends Base[Pulse[A]], Source[A], Signal[A]

Source signals with imperatively updates.

Source signals with imperatively updates.

Type parameters

A

Type stored by the signal

Attributes

Companion
object
Supertypes
trait Signal[A]
trait MacroAccess[A]
trait ReadAs[A]
trait Source[A]
class Base[Pulse[A]]
trait ReSource
class Object
trait Matchable
class Any
Show all

Types

opaque type FoldState[T]