monifu

reactive

package reactive

Visibility
  1. Public
  2. All

Type Members

  1. trait Observable[+T] extends AnyRef

    Asynchronous implementation of the Observable interface

  2. trait Observer[-T] extends AnyRef

    The Observer from the Rx pattern is the trio of callbacks that get subscribed to an Observable for receiving events.

    The Observer from the Rx pattern is the trio of callbacks that get subscribed to an Observable for receiving events.

    The events received must follow the Rx grammar, which is: onNext * (onComplete | onError)?

    That means an Observer can receive zero or multiple events, the stream ending either in one or zero onComplete or onError (just one, not both), and after onComplete or onError, a well behaved Observable implementation shouldn't send any more onNext events.

Value Members

  1. object Observable

  2. package api

  3. package cancelables

    Cancelables represent asynchronous units of work or other things scheduled for execution and whose execution can be canceled.

    Cancelables represent asynchronous units of work or other things scheduled for execution and whose execution can be canceled.

    One use-case is the scheduling done by monifu.concurrent.Scheduler, in which the scheduling methods return a Cancelable, allowing the canceling of the scheduling.

    Example:

    val s = ConcurrentScheduler()
    val task = s.scheduleRepeated(10.seconds, 50.seconds, {
      println("Hello")
    })
    
    // later, cancels the scheduling ...
    task.cancel()
  4. package internals

  5. package observers

  6. package subjects

Ungrouped