All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.reactfx.SuspenderStreamImpl Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy