Package org.reactfx

Interface SuspendableEventStream<T>

All Superinterfaces:
EventStream<T>, Observable<Consumer<? super T>>, Suspendable
All Known Implementing Classes:
AbstractReducibleEventStream, AccumulativeEventStream, ForgetfulEventStream, PausableEventStream, ReducibleEventStream, SuppressibleEventStream, SuspendableEventStreamBase

public interface SuspendableEventStream<T> extends EventStream<T>, Suspendable
An event stream whose emission of events can be suspended temporarily. What events, if any, are emitted when emission is resumed depends on the concrete implementation.
  • Method Details

    • suspendedWhen

      default EventStream<T> suspendedWhen(javafx.beans.value.ObservableValue<Boolean> condition)
      Returns an event stream that is suspended when the given condition is true and emits normally when condition is false.