Event
- Source
- __.scala
Member
CancelRequest can be thrown inside event code, so the event will be cancelled
Note: This is more advanced facility, most events are cancelled with returned Event.Control methods
- Source
- CancelRequest.scala
General Observable
General Observable
is the root interface of all observable types.
val pro = Pro.OM[Int](0)
pro.onObservableChange(() => "Change detected".tp)
pro() = 1
// Output
Change detected
- Source
- __.scala
General Observable
General Observable
is the root interface of all observable types.
val pro = Pro.OM[Int](0)
pro.onObservableChange(() => "Change detected".tp)
pro() = 1
// Output
Change detected
- Source
- __.scala
Event.Store is a shared linked list container for keeping primarily _events definitions.
But it also can store/access any generic objects through _entries interface.
Event.Store has an idea of 'id' space or scope. Entries are added with specific 'id' and can only be accessible if this 'id' is provided. So, different types of entries defined in curent or extending types can share a single store instance.
The removal of entries is lazy after an Entry method 'cancel' is invoked. Though events do provide direct removal as well.
- Source
- __.scala
Event.Store is a shared linked list container for keeping primarily _events definitions.
But it also can store/access any generic objects through _entries interface.
Event.Store has an idea of 'id' space or scope. Entries are added with specific 'id' and can only be accessible if this 'id' is provided. So, different types of entries defined in curent or extending types can share a single store instance.
The removal of entries is lazy after an Entry method 'cancel' is invoked. Though events do provide direct removal as well.
- Source
- __.scala