← Questions

Build your own CompletableFuture

0
GoogleCodingLast asked Jun 2026

Implement a small version of CompletableFuture: a result that some thread completes later, that other threads can wait on, and that can be chained with callbacks. Then use it to process an array in parallel and combine the results.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding