What is the main purpose of CompletableFuture in Java concurrency?
Answer options
- A. Run tasks through a managed worker pool
- B. Compose asynchronous results and failures
- C. Update shared state without an unsafe read-write race
- D. Protect a compound critical section