Project reactor: collectList() doesn't work for Flux.create()

后端 未结 1 1864
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-23 23:01

Below example prints integers from 1 to 10 and a list of (7, 8, 9, 10)

public void streamCollect() {

    ConnectableFlux connect = Flux.range(1,          


        
1条回答
  •  盖世英雄少女心
    2021-01-23 23:50

    The collectList waits for the onComplete signal, which you never produce in your create lambda

    0 讨论(0)
提交回复
热议问题