Reactor

object Reactor
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def loop[T](initialValue: T)(initialStage: Stage[T]): Reactor[T]

Creates a new Reactor, which starts from the beginning, once it's finished.

Creates a new Reactor, which starts from the beginning, once it's finished.

Type Params
T

The type of the Reactor value.

Value Params
initialStage

The Stage defining the Reactors behaviour.

initialValue

The initial value of the Reactor.

Returns

The created Reactor.

def once[T](initialValue: T)(initialStage: Stage[T]): Reactor[T]

Creates a new Reactor, which steps through the reactor stages ones.

Creates a new Reactor, which steps through the reactor stages ones.

Type Params
T

The type of the Reactor value.

Value Params
initialStage

The Stage defining the Reactors behaviour.

initialValue

The initial value of the Reactor.

Returns

The created Reactor.