Packages

class Evt[T] extends Operators.Base[Pulse[T]] with Operators.Source[T] with Operators.Event[T]

Source events with imperative occurrences

T

Type returned when the event fires

Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Evt
  2. Event
  3. Disconnectable
  4. EventCompat
  5. ReadableMacro
  6. MacroAccess
  7. ReadAs
  8. Source
  9. Base
  10. ReSource
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Value = Pulse[T]
    Definition Classes
    EvtBaseReSource

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final macro def &&(expression: (T) => Boolean)(implicit ticket: Operators.CreationTicket): Operators.Event[T]

    Filters the event, only propagating the value when the filter is true.

    Filters the event, only propagating the value when the filter is true.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
    See also

    filter

  4. final def +=(handler: (T) => Unit)(implicit ticket: Operators.CreationTicket): Operators.Disconnectable

    Adds an observer.

    Adds an observer.

    Definition Classes
    Event
    See also

    observe

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def \[U](except: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[T]

    Propagates the event only when except does not fire.

    Propagates the event only when except does not fire.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  7. final def admit(value: T)(implicit ticket: Operators.AdmissionTicket): Unit
    Definition Classes
    Source
  8. def admitPulse(pulse: Pulse[T])(implicit ticket: Operators.AdmissionTicket): Unit
    Definition Classes
    EvtSource
  9. final def and[U, R](other: Operators.Event[U])(merger: (T, U) => R)(implicit ticket: Operators.CreationTicket): Operators.Event[R]

    Merge the event with the other, if both fire simultaneously.

    Merge the event with the other, if both fire simultaneously.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  10. final def apply(): Option[T]

    Makes the enclosing reactive expression depend on the current value of the reactive.

    Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for value.

    Definition Classes
    MacroAccess
    Annotations
    @compileTimeOnly("".+(this).+(" apply can only be used inside of reactive expressions"))
    See also

    value

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  13. final macro def collect[U](expression: PartialFunction[T, U])(implicit ticket: Operators.CreationTicket): Operators.Event[U]

    Collects the results from a partial function

    Collects the results from a partial function

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  14. def commit(base: Value): Value
    Attributes
    protected[rescala]
    Definition Classes
    EvtReSource
  15. final def count()(implicit ticket: Operators.CreationTicket): Operators.Signal[Int]

    Counts the occurrences of the event.

    Counts the occurrences of the event. The argument of the event is discarded. Always starts from 0 when the count is created (no matter how often the event has activated in the past).

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  16. def disconnect(): Unit
    Definition Classes
    EvtDisconnectable
  17. final def dropParam(implicit ticket: Operators.CreationTicket): Operators.Event[Unit]

    Drop the event parameter; equivalent to map((_: Any) => ())

    Drop the event parameter; equivalent to map((_: Any) => ())

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. final macro def filter(expression: (T) => Boolean)(implicit ticket: Operators.CreationTicket): Operators.Event[T]

    Filters the event, only propagating the value when the filter is true.

    Filters the event, only propagating the value when the filter is true.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  21. def fire(value: T)(implicit sched: Operators.Scheduler, scopeSearch: Operators.ScopeSearch): Unit
  22. def fire()(implicit fac: Operators.Scheduler, scopeSearch: Operators.ScopeSearch, ev: =:=[Unit, T]): Unit
  23. final def flatten[R](implicit flatten: Operators.Flatten[Operators.Event[T], R]): R

    Flattens the inner value.

    Flattens the inner value.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  24. final macro def fold[A](init: A)(op: (A, T) => A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Folds events with a given operation to create a Signal.

    Folds events with a given operation to create a Signal.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  27. def internalAccess(v: Pulse[T]): Pulse[T]
    Definition Classes
    EvtEvent
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def iterate[A](init: A)(f: (A) => A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Applies a function on the current value of the signal every time the event occurs, starting with the init value before the first event occurrence

    Applies a function on the current value of the signal every time the event occurs, starting with the init value before the first event occurrence

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  30. final def last[A >: T](n: Int)(implicit ticket: Operators.CreationTicket): Operators.Signal[LinearSeq[A]]

    Returns a signal which holds the last n events in a list.

    Returns a signal which holds the last n events in a list. At the beginning the list increases in size up to when n values are available

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  31. final def latest[A >: T]()(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    returns a signal holding the latest value of the event.

    returns a signal holding the latest value of the event.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  32. final def latest[A >: T](init: A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    returns a signal holding the latest value of the event.

    returns a signal holding the latest value of the event.

    init

    initial value of the returned signal

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  33. final def latestOption[A >: T]()(implicit ticket: Operators.CreationTicket): Operators.Signal[Option[A]]

    Holds the latest value of an event as an Option, None before the first event occured

    Holds the latest value of an event as an Option, None before the first event occured

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  34. final def list[A >: T]()(implicit ticket: Operators.CreationTicket): Operators.Signal[List[A]]

    collects events resulting in a variable holding a list of all values.

    collects events resulting in a variable holding a list of all values.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  35. final macro def map[A](expression: (T) => A)(implicit ticket: Operators.CreationTicket): Operators.Event[A]

    Transform the event.

    Transform the event.

    Definition Classes
    EventCompat
    Annotations
    @cutOutOfUserComputation()
  36. val name: ReName
    Definition Classes
    BaseReSource
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  40. final def observe(onValue: (T) => Unit, onError: (Throwable) => Unit = null, fireImmediately: Boolean = false)(implicit ticket: Operators.CreationTicket): Operators.Disconnectable

    Add an observer.

    Add an observer.

    returns

    the resulting rescala.operator.ObserveBundle.Observe can be used to remove the observer.

    Definition Classes
    Event
  41. def read(v: Value): Option[T]

    Interprets the pulse of the event by converting to an option

    Interprets the pulse of the event by converting to an option

    Definition Classes
    EventReadAs
  42. final def recover[R >: T](onFailure: PartialFunction[Throwable, Option[R]])(implicit ticket: Operators.CreationTicket): Operators.Event[R]

    Uses a partial function onFailure to recover an error carried by the event into a value when returning Some(value), or filters the error when returning None

    Uses a partial function onFailure to recover an error carried by the event into a value when returning Some(value), or filters the error when returning None

    Definition Classes
    Event
  43. final def reduce[A](reducer: (=> A, => T) => A)(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    reduces events with a given reduce function to create a Signal

    reduces events with a given reduce function to create a Signal

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  44. def resource: Operators.ReadAs[Option[T]]
    Definition Classes
    EventMacroAccess
  45. val state: Operators.State[Pulse[T]]
    Attributes
    protected[rescala]
    Definition Classes
    BaseReSource
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    Base → AnyRef → Any
  48. final def toggle[A](a: Operators.Signal[A], b: Operators.Signal[A])(implicit ticket: Operators.CreationTicket): Operators.Signal[A]

    Switch back and forth between two signals on occurrence of event e

    Switch back and forth between two signals on occurrence of event e

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  49. final def value: Option[T]

    Makes the enclosing reactive expression depend on the current value of the reactive.

    Makes the enclosing reactive expression depend on the current value of the reactive. Is an alias for rescala.macros.MacroAccess.apply.

    Definition Classes
    MacroAccess
    Annotations
    @compileTimeOnly("value can only be used inside of reactive expressions")
    See also

    apply

  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def zip[U](other: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[(T, U)]

    Merge the event with the other into a tuple, if both fire simultaneously.

    Merge the event with the other into a tuple, if both fire simultaneously.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
    See also

    and

  54. final def zipOuter[U](other: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[(Option[T], Option[U])]

    Merge the event with the other into a tuple, even if only one of them fired.

    Merge the event with the other into a tuple, even if only one of them fired.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()
  55. final def ||[U >: T](other: Operators.Event[U])(implicit ticket: Operators.CreationTicket): Operators.Event[U]

    Events disjunction.

    Events disjunction. Propagates the values if any of the events fires. Only propagates the left event if both fire.

    Definition Classes
    Event
    Annotations
    @cutOutOfUserComputation()

Deprecated Value Members

  1. def apply(value: T)(implicit fac: Operators.Scheduler, scopeSearch: Operators.ScopeSearch): Unit

    Trigger the event

    Trigger the event

    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.0) use .fire instead of apply

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Operators.Event[T]

Inherited from Operators.EventCompat[T]

Inherited from Operators.ReadableMacro[Option[T]]

Inherited from MacroAccess[Option[T], Operators.ReadAs[Option[T]]]

Inherited from Operators.ReadAs[Option[T]]

Inherited from Operators.Source[T]

Inherited from Operators.Base[Pulse[T]]

Inherited from Operators.ReSource

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Event operators

Event to Signal conversions

Ungrouped