io.reactors

Events

object Events

Contains useful Events implementations and factory methods.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Events
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Emitter[T] extends Push[T] with Events[T] with Observer[T]

    Event source that emits events when react, except or unreact is called.

    Event source that emits events when react, except or unreact is called.

    Emitter is simultaneously an event stream, and an observer.

  2. class Mutable[M >: Null <: AnyRef] extends Push[M] with Events[M]

    An event stream that emits events when the underlying mutable object is modified.

    An event stream that emits events when the underlying mutable object is modified.

    An event with underlying mutable value is emitted whenever the mutable value was potentially mutated. This type of a signal provides a controlled way of manipulating mutable values.

    Note: The underlying mutable object must never be mutated directly by accessing the value of the signal and changing the mutable object. Instead, the mutate operation of Events should be used to mutate the underlying mutable object.

    Example:

    val systemMessages = new Events.Emitter[String]
    val log = new Events.Mutable(new mutable.ArrayBuffer[String])
    val logMutations = systemMessages.mutate(log) { buffer => msg =>
      buffer += msg
    }
    systemMessages.react("New message arrived!") // buffer now contains the message

    As long as there are no feedback loops in the dataflow graph, the same thread will never modify the mutable object at the same time. See the mutate method on Eventss for more information.

    Note that mutable event stream never unreacts.

    M

    the type of the underlying mutable object

    See also

    scala.reactive.Events

  3. class Never[T] extends Events[T]

    A class for event streams that never emit events.

    A class for event streams that never emit events.

    T

    type of events never emitted by this event stream

  4. trait Push[T] extends Events[T]

    The default implementation of a event stream value.

    The default implementation of a event stream value.

    Keeps an optimized weak collection of weak references to subscribers. References to subscribers that are no longer reachable in the application will be removed eventually.

    T

    type of the events in this event stream value

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. def mux[T](e: Events[Events[T]]): Events[T]

    Factory method for creating mux event streams.

    Factory method for creating mux event streams.

    See mux on Events for more details.

  13. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def never[T]: Events[T]

    Returns an event stream that never emits.

  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. def union[T](e: Events[Events[T]]): Events[T]

    Factory method for creating union event streams.

    Factory method for creating union event streams.

    See union on Events for more details.

  20. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped