Closed oldratlee closed 2 months ago
this feature introduced a new run strategy allSuccess
.
当有结果(返回不是CF<Void>
)时,6个执行策略一套:
allFastFail
allSuccess
mostSuccess
all(Complete)
anySuccess
any(Complete)
当无结果(返回是CF<Void>
)时,4个执行策略一套:
allFastFail
all(Complete)
anySuccess
any(Complete)
mostSuccess
对于不带回结果的方法,感觉是无意义的:
mRunAsync(action1, action2, action3)
.completeOnTimeout(null, 100, TimeUnit.MILLISECONDS)
.exceptionally(ex -> null);
类似的,allSuccess
对于不带回结果的方法,也是无意义的:
mRunAsync(action1, action2, action3)
.exceptionally(ex -> null);
CompletableFutureUtils
mSupplyAnySuccessAsync
/mSupplyAnyAsync
mRunAnySuccessAsync
/mRunAnyAsync
thenMApplyAnySuccessAsync
/thenMApplyAnyAsync
thenMAcceptAnySuccessAsync
/thenMAcceptAnyAsync
thenMRunAnySuccessAsync
/thenMRunAnyAsync
CffuFactory
(Factory Methods)mSupplyAnySuccessAsync
/mSupplyAnyAsync
mRunAnySuccessAsync
/mRunAnyAsync
Cffu
(Instance Methods)thenMApplyAnySuccessAsync
/thenMApplyAnyAsync
thenMAcceptAnySuccessAsync
/thenMAcceptAnyAsync
thenMRunAnySuccessAsync
/thenMRunAnyAsync