![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
reactor3
诛仙89
11111
展开
-
二、subscribeOn和publishOn源码解析
一、subcribeOn 1.1 测试代码 CountDownLatch countDownLatch = new CountDownLatch(1); //模拟Io阻塞 private String ioBlockOperator(){ try { TimeUnit.SECONDS.sleep(5); } catch (Interrupt...原创 2020-03-29 18:27:40 · 1952 阅读 · 0 评论 -
一、Reactor3 创建源码分析
一、代码示例 Flux<String> flux = Flux.just("foo", "bar", "foobar"); flux.subscribe(System.out::println); 二、Flux.just方法源码追踪 首先接受一下订阅者类的基本方法 public interface Subscriber<T> { public void onSubsc...原创 2020-03-22 19:57:07 · 326 阅读 · 0 评论