Java CompletableFuture APIs
supplyAsync : run a task async and returl result
thenApply : process result and transform(Function ineterface) the result
thenAccept : prcocess result and consumer the result
thenCompose : combine two Futures like pipeline (dependent on the other)
thenCombine : combine tow Future like parallel (independent on the other)
supplyAsync : run a task async and returl result
thenApply : process result and transform(Function ineterface) the result
thenAccept : prcocess result and consumer the result
thenCompose : combine two Futures like pipeline (dependent on the other)
thenCombine : combine tow Future like parallel (independent on the other)
댓글
댓글 쓰기