This is by no means a finished implementation. It merely demonstrates how we can use "compose" functions instead of "apply" ones, to fix the problem with nested completes.
Apply is to compose as map is to flatMap. Compose will flatten the result of composed CompletableFuture(s).
This is by no means a finished implementation. It merely demonstrates how we can use "compose" functions instead of "apply" ones, to fix the problem with nested completes.
Apply is to compose as map is to flatMap. Compose will flatten the result of composed CompletableFuture(s).