Even if it not really cancellable you can pretend ...
# coroutines
e
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.