https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

r4zzz4k

01/31/2018, 9:11 PM
And if I recall correctly,
suspendableCoroutine
is a low-level primitive, so it's reasonable to replace it with
CompletableDeferred
. Someone should correct me if I'm wrong, or maybe provide details on why.
👍 1
d

dave08

01/31/2018, 9:44 PM
@r4zzz4k Did you see the KEEP in kotlinx.coroutines? It uses those for adapting callback based apis like vertx... there's also a cancellable version... I wonder if the KEEP is trying to propose good practices there or just showing internals?
3 Views