org.reactfx.SuspenderStreamImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of richtextfx Show documentation
Show all versions of richtextfx Show documentation
FX-Text-Area for formatted text and other special effects.
package org.reactfx;
import java.util.function.Consumer;
class SuspenderStreamImpl
extends SuspenderBase, T, S>
implements SuspenderStream, ProperEventStream {
private final EventStream source;
public SuspenderStreamImpl(EventStream source, S suspendable) {
super(suspendable);
this.source = source;
}
@Override
protected Subscription observeInputs() {
return source.subscribe(this::notifyObserversWhileSuspended);
}
}