Hello everyone! Please tell me, the `whenReady` ex...
# kotest
a
Hello everyone! Please tell me, the
whenReady
extension function for
CompletableFuture
has been removed? What is the alternative ?
s
You can use the built in coroutines adapter to use it as a suspendable
a
I have two cases - using coroutines and using Java Future. I wanted to use
whenReady
when testing Java Future. But apparently it will not work. Thanks for the advice!
s
the problem with the standard Future is there's no method other than .get() which is blocking
so something has to block somewhere
the completable future has the callback that coroutines can hook into