本文整理了Java中com.oath.cyclops.async.adapters.Queue.streamCompletableFutures
方法的一些代码示例,展示了Queue.streamCompletableFutures
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Queue.streamCompletableFutures
方法的具体详情如下:
包路径:com.oath.cyclops.async.adapters.Queue
类名称:Queue
方法名:streamCompletableFutures
暂无
代码示例来源:origin: aol/cyclops
/**
* 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());
}
代码示例来源:origin: com.oath.cyclops/cyclops
/**
* 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());
}
代码示例来源:origin: com.oath.cyclops/cyclops-futurestream
final Iterator<CompletableFuture<T>> it = queue.streamCompletableFutures()
.iterator();
内容来源于网络,如有侵权,请联系作者删除!