Packages

trait Event[+T, S <: Struct] extends ReSource[S] with Interp[Option[T], S] with Disconnectable[S]

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 accidentially 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.

T

Value type of the event occurrences.

S

Internal rescala.core.Structure of state.

Linear Supertypes
Known Subclasses
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Event
  2. Disconnectable
  3. Interp
  4. ReSource
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final type State = S.State[Value, S]
    Definition Classes
    ReSource
  2. abstract type Value
    Definition Classes
    ReSource

Abstract Value Members

  1. abstract def disconnect()(implicit engine: Scheduler[S]): Unit
    Definition Classes
    Disconnectable
  2. implicit abstract def internalAccess(v: Value): Pulse[T]
  3. abstract def state: State
    Attributes
    protected[rescala]
    Definition Classes
    ReSource

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def &&(pred: (T) ⇒ Boolean): default.Event[T]

    [use case]

    [use case]
    Full Signature

    final def &&(pred: (T) ⇒ Boolean)(implicit ticket: CreationTicket[S]): Event[T, S]

    See also

    filter

  4. final def +=(handler: (T) ⇒ Unit): Observe[S]

    [use case]

    [use case]
    Full Signature

    final def +=(handler: (T) ⇒ Unit)(implicit ticket: CreationTicket[S]): Observe[S]

    See also

    observe

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

    [use case]

    [use case]
    Full Signature

    final def \[U](except: Event[U, S])(implicit ticket: CreationTicket[S]): Event[T, S]

  7. final def and[U, R](other: default.Event[U]): default.Event[R]

    [use case]

    [use case]
    Full Signature

    final def and[U, R](other: Event[U, S])(merger: (T, U) ⇒ R)(implicit ticket: CreationTicket[S]): Event[R, S]

  8. 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
    Interp
    Annotations
    @compileTimeOnly( ... )
    See also

    value

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  11. final def collect[U](pf: PartialFunction[T, U]): default.Event[U]

    [use case]

    [use case]
    Full Signature

    final def collect[U](pf: PartialFunction[T, U])(implicit ticket: CreationTicket[S]): Event[U, S]

  12. final def count(): default.Signal[Int]

    [use case] Counts the occurrences of the event.

    [use case]

    Counts the occurrences of the event. Starts from 0, when the event has never been fired yet. The argument of the event is simply discarded.

    Full Signature

    final def count()(implicit ticket: CreationTicket[S], ev: ReSerializable[Int]): Signal[Int, S]

  13. final def dropParam(implicit ticket: CreationTicket[S]): default.Event[Unit]

    [use case]

    [use case]
    Full Signature

    final def dropParam(implicit ticket: CreationTicket[S]): Event[Unit, S]

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. final def filter(pred: (T) ⇒ Boolean): default.Event[T]

    [use case]

    [use case]
    Full Signature

    final def filter(pred: (T) ⇒ Boolean)(implicit ticket: CreationTicket[S]): Event[T, S]

  17. final def flatten[R](implicit flatten: Flatten[Event[T, S], R]): R

    Flattens the inner value.

    Flattens the inner value.

    Annotations
    @cutOutOfUserComputation()
  18. final macro def fold[A](init: A)(op: (A, T) ⇒ A): default.Signal[A]

    [use case] Folds events with a given operation to create a Signal.

    [use case]

    Folds events with a given operation to create a Signal.

    Full Signature

    final macro def fold[A](init: A)(op: (A, T) ⇒ A)(implicit ticket: CreationTicket[S], serializable: ReSerializable[A]): Signal[A, S]

  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def interpret(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
    EventInterp
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def iterate[A](init: A)(f: (A) ⇒ A): default.Signal[A]

    [use case]

    [use case]
    Full Signature

    final def iterate[A](init: A)(f: (A) ⇒ A)(implicit arg0: ReSerializable[A], ticket: CreationTicket[S]): Signal[A, S]

  24. final def last[A >: T](n: Int): default.Signal[LinearSeq[A]]

    [use case]

    [use case]
    Full Signature

    final def last[A >: T](n: Int)(implicit ticket: CreationTicket[S], ev: ReSerializable[Queue[A]]): Signal[LinearSeq[A], S]

  25. final def latest[A >: T](): default.Signal[A]

    [use case]

    [use case]
    Full Signature

    final def latest[A >: T]()(implicit arg0: ReSerializable[A], ticket: CreationTicket[S]): Signal[A, S]

  26. final def latest[A >: T](init: A): default.Signal[A]

    [use case]

    [use case]
    init

    initial value of the returned signal

    Full Signature

    final def latest[A >: T](init: A)(implicit arg0: ReSerializable[A], ticket: CreationTicket[S]): Signal[A, S]

  27. final def latestOption[A >: T](): default.Signal[Option[A]]

    [use case]

    [use case]
    Full Signature

    final def latestOption[A >: T]()(implicit ticket: CreationTicket[S], ev: ReSerializable[Option[A]]): Signal[Option[A], S]

  28. final def list[A >: T](): default.Signal[List[A]]

    [use case]

    [use case]
    Full Signature

    final def list[A >: T]()(implicit ticket: CreationTicket[S], ev: ReSerializable[List[A]]): Signal[List[A], S]

  29. final macro def map[A](expression: (T) ⇒ A): default.Event[A]

    [use case]

    [use case]
    Full Signature

    final macro def map[A](expression: (T) ⇒ A)(implicit ticket: CreationTicket[S]): Event[A, S]

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. final def observe(handler: (T) ⇒ Unit): Observe[S]

    [use case]

    [use case]
    returns

    the resulting Observe can be used to remove the observer.

    Full Signature

    final def observe(onSuccess: (T) ⇒ Unit, onFailure: (Throwable) ⇒ Unit = null)(implicit ticket: CreationTicket[S]): Observe[S]

  34. final def recover[R >: T](onFailure: PartialFunction[Throwable, Option[R]]): default.Event[R]

    [use case]

    [use case]
    Full Signature

    final def recover[R >: T](onFailure: PartialFunction[Throwable, Option[R]])(implicit ticket: CreationTicket[S]): Event[R, S]

  35. final def reduce[A](reducer: (⇒ A, ⇒ T) ⇒ A): default.Signal[A]

    [use case]

    [use case]
    Full Signature

    final def reduce[A](reducer: (⇒ A, ⇒ T) ⇒ A)(implicit arg0: ReSerializable[A], ticket: CreationTicket[S]): Signal[A, S]

  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def toggle[A](a: default.Signal[A], b: default.Signal[A]): default.Signal[A]

    [use case]

    [use case]
    Full Signature

    final def toggle[A](a: Signal[A, S], b: Signal[A, S])(implicit ticket: CreationTicket[S], ev: ReSerializable[Boolean]): Signal[A, S]

  39. 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 apply.

    Definition Classes
    Interp
    Annotations
    @compileTimeOnly( ... )
    See also

    apply

  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def zip[U](other: default.Event[U]): default.Event[(T, U)]

    [use case]

    [use case]
    Full Signature

    final def zip[U](other: Event[U, S])(implicit ticket: CreationTicket[S]): Event[(T, U), S]

    See also

    and

  44. final def zipOuter[U](other: Event[U, S]): default.Event[(Option[T], Option[U])]

    [use case]

    [use case]
    Full Signature

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

  45. final def ||[U >: T](other: default.Event[U]): default.Event[U]

    [use case]

    [use case]
    Full Signature

    final def ||[U >: T](other: Event[U, S])(implicit ticket: CreationTicket[S]): Event[U, S]

Deprecated Value Members

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from Disconnectable[S]

Inherited from Interp[Option[T], S]

Inherited from ReSource[S]

Inherited from AnyRef

Inherited from Any

internal

Accessor and observers

Event operators

Event to Signal conversions

Ungrouped