Package org.reactfx

Interface StateMachine.StatefulStreamBuilder<S,​O>

    • Method Detail

      • toEventStream

        EventStream<O> toEventStream()
        Returns an event stream that emits a value when one of the state machine's input streams causes the state machine to emit a value.

        The returned event stream is lazily bound, meaning the associated state machine is subscribed to its inputs only when the returned stream has at least one subscriber. No state transitions take place unless there is a subscriber to the returned stream. If you need to keep the state machine alive even when temporarily not subscribed to the returned stream, you can pin the returned stream.