EventBundle
Document{}
Similar to 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 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.
- See also
Signal
- Inherited from
- EventCompatBundle
Type members
Classlikes
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 implicit 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 implicit 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 Params
- S
Internal rescala.core.Structure of state.
- T
Value type of the event occurrences.
Inherited classlikes
Enables reading of the current value during admission. Keeps track of written sources internally.
Enables reading of the current value during admission. Keeps track of written sources internally.
- Inherited from
- Core
Enables the creation of other reactives
Enables the creation of other reactives
- Inherited from
- Core
As reactives can be created during propagation, any InnerTicket can be converted to a creation ticket.
As reactives can be created during propagation, any InnerTicket can be converted to a creation ticket.
- Inherited from
- Core
A reactive value is something that can be reevaluated
A reactive value is something that can be reevaluated
- Inherited from
- Core
User facing low level API to access values in a dynamic context.
User facing low level API to access values in a dynamic context.
- Inherited from
- Core
Encapsulates an action changing a single source.
Encapsulates an action changing a single source.
- Inherited from
- Core
InnerTickets are used in Rescala to give capabilities to contexts during propagation. ReevTicket is used during reevaluation, and AdmissionTicket during the initialization.
InnerTickets are used in Rescala to give capabilities to contexts during propagation. ReevTicket is used during reevaluation, and AdmissionTicket during the initialization.
- Inherited from
- Core
Common macro accessors for rescala.operator.SignalBundle.Signal and rescala.operator.EventBundle.Event
Common macro accessors for rescala.operator.SignalBundle.Signal and rescala.operator.EventBundle.Event
- Type Params
- A
return type of the accessor
- Inherited from
- Core
If no InnerTicket is found, then these implicits will search for a Scheduler, creating the reactives outside of any turn.
If no InnerTicket is found, then these implicits will search for a Scheduler, creating the reactives outside of any turn.
- Inherited from
- Core
Source of (reactive) values. State can only be accessed with a correct InnerTicket.
Source of (reactive) values. State can only be accessed with a correct InnerTicket.
- Inherited from
- Core
ReevTicket is given to the Derived reevaluate method and allows to access other reactives. The ticket tracks return values, such as dependencies, the value, and if the value should be propagated. Such usages make it unsuitable as an API for the user, where StaticTicket or DynamicTicket should be used instead.
ReevTicket is given to the Derived reevaluate method and allows to access other reactives. The ticket tracks return values, such as dependencies, the value, and if the value should be propagated. Such usages make it unsuitable as an API for the user, where StaticTicket or DynamicTicket should be used instead.
- Inherited from
- Core
Propagation engine that defines the basic data-types available to the user and creates turns for propagation handling
Propagation engine that defines the basic data-types available to the user and creates turns for propagation handling
- Type Params
- S
Struct type that defines the spore type used to manage the reactive evaluation
- Inherited from
- Core
User facing low level API to access values in a static context.
User facing low level API to access values in a static context.
- Inherited from
- Core