Package org.reactfx

Interface Connectable<T>

    • Method Detail

      • connectTo

        Subscription connectTo​(EventStream<? extends T> source)
        Connects this connectable object to source event stream. Implementations of this method should subscribe to source lazily, i.e. only subscribe to source when necessary, e.g. when the connectable object itself is being observed (e.g. itself has at least one subscriber).

        A Connectable may be connected to multiple sources at the same time.

        Parameters:
        source - event stream to (lazily) connect to.
        Returns:
        subscription that can be used to disconnect this connectable object from source.