差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
java:java:java8:concurrent:blockingoperationwithcompletablefuture:avoid_transition_task [2019/01/13 15:12] tony [How to resolve?] |
java:java:java8:concurrent:blockingoperationwithcompletablefuture:avoid_transition_task [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | {{tag>java concurrency}} | ||
====== CompletableFuture - Avoid transition task from one thread to another. It costs. ====== | ====== CompletableFuture - Avoid transition task from one thread to another. It costs. ====== | ||
===== Problem ===== | ===== Problem ===== | ||
行 34: | 行 35: | ||
} | } | ||
</code> | </code> | ||
+ | 這樣你的client thread就可以回去做它該做的事情,避免在那等待而浪費。 | ||
===== Reference ===== | ===== Reference ===== |