File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- * CompletableFuture* is a tool for asynchronous programming in Java. Asynchronous programming is writing
1+ ` Future ` is a placeholder for a result of an operation that hasn't finished yet.
2+ Once the operation finishes, the ` Future ` will contain that result.
3+
4+ Limitations of futures:
5+
6+ * they cannot be manually completed
7+ * no further action on a Future's result without blocking
8+ * multiple Futures cannot be chained or combined
9+ * there is no exception handling construct
10+
11+ ` CompletableFuture ` was introduced to fix the limitations of ` Future ` .
12+
13+ ` CompletableFuture ` is a tool for asynchronous programming in Java. Asynchronous programming is writing
214non-blocking code by running a task on a separate thread than the main application thread
315and notifying the main thread about its progress, completion, or failure.
You can’t perform that action at this time.
0 commit comments