如果我为 thenApplyAsync 和 supplyAsync 提供不同的执行器怎么办?

问题描述 投票:0回答:0

假设我正在使用

supplyAsync
方法创建异步任务,并为此使用执行程序 E1。

然后对于

thenApply
thenApplyAsync
我提供的执行者是E2.

thenApply
将如何使用E1和E2?它会优先考虑哪个执行者?

java completable-future
© www.soinside.com 2019 - 2024. All rights reserved.