Reactor Flux to Mono>

前端 未结 1 1282
天涯浪人
天涯浪人 2021-01-15 11:45

How can I convert Flux directly to Mono> ?

I am looking for equivalent of Single

相关标签:
1条回答
  • 2021-01-15 12:18

    Flux has the method collectList() doing just the same like toList() in Rx.

    val just: Mono<List<MyObject>> = flux.collectList()
    
    0 讨论(0)
提交回复
热议问题