If you want to isolate yourself from the risk of a...
# coroutines
e
If you want to isolate yourself from the risk of accidentally using
get
inappropriately, then you should not use
CompletableFuture
at all. Use
Deferred
instead (create it with
defer(context) {…}
).
Deferred
does not have
get
at all (only
await
), so there is no risk of accidentally blocking anything
👍 3