/** * Generating a streamCompletableFutures will register the Stream as a reactiveSubscriber to this topic. * It will be provided with an internal Queue as a mailbox. @see Topic.disconnect to disconnect from the topic * * @return Stream of CompletableFutures that can be used as input into a SimpleReact concurrent dataflow */ @Override public ReactiveSeq<CompletableFuture<T>> streamCompletableFutures() { return connect(q -> q.streamCompletableFutures()); }
/** * Generating a streamCompletableFutures will register the Stream as a reactiveSubscriber to this topic. * It will be provided with an internal Queue as a mailbox. @see Topic.disconnect to disconnect from the topic * * @return Stream of CompletableFutures that can be used as input into a SimpleReact concurrent dataflow */ @Override public ReactiveSeq<CompletableFuture<T>> streamCompletableFutures() { return connect(q -> q.streamCompletableFutures()); }
final Iterator<CompletableFuture<T>> it = queue.streamCompletableFutures() .iterator();