The Flow.Publisher interface

The Flow.Publisher interface is a functional interface. A Publisher is a producer of data sent to subscribers:

@FunctionalInterface
public static interface Flow.Publisher<T>

This functional interface can serve as a Lambda expression assignment target. It only takes one argument—the subscribed item type <T>. It has one method, that is, void subscribe(Flow.Subscriber subscriber).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset