reactor.core.Exceptions$OverflowException: Could not emit tick 1 due to lack of requests (interval doesn't support small downstream requests that replenish slower than the ticks)

reactor.core.Exceptions$OverflowException: Could not emit tick 1 due to lack of requests (interval doesn't support small downstream requests that replenish slower than the ticks)

这个问我呢提出现在设定Duration.ofMillis(1000)时间时,将1000改为了10,
而最低设定就为1000 不能再小了

    @GetMapping("/sse")
    public Flux<String> sse(){
        return Flux.interval(Duration.ofMillis(1000)).map(val -> " ->" +val);
    }
posted @ 2020-10-09 09:19  ukyo--碳水化合物  阅读(3054)  评论(0)    收藏  举报