fun <A>whenReady(f:CompletableFuture<A>, test:(A)->Unit): Unit Deprecated: use the extension function variant: future.whenReady { } which uses coroutines rather than blocking
Allows callers to queue up futures with a callback that will be executed
when the future has completed.