CompletableFuture
-
CompletableFuture, and FutureStaticPL/JAVA 2019. 8. 20. 11:12
1. Overview CompletableFuture and Future are used for asynchronous programming in Java. Asynchronous programming is a means of writing non-blocking code by running a task on a separate thread than the main application thread and notifying the main thread about its progress, completion or failure. So Main thread doesn't block/wait for the completion of an async task and it can execute other tasks..