Join Slack
Powered by
Even if it not really cancellable you can pretend ...
# coroutines
e
elizarov
04/19/2017, 1:06 PM
Even if it not
really
cancellable you can
pretend
that it is cancellable by simply replacing
suspendCoroutine
with
suspendCancellableCoroutine
. It will not actually cancel the operation on timeout, then, but will let the code that invoked
withTimeout
to continue.
Open in Slack
Previous
Next