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:
- void onSubscribe(Flow.Subscription subscription)