Join Slack
Powered by
If it is cancelleable, then, first, you should wra...
# coroutines
e
elizarov
04/19/2017, 1:04 PM
If it is cancelleable, then, first, you should wrap it with
suspendCancellableCoroutine
. Then, after you’ve done that, you can use
withTimeout(timeout) { myOperation() }
Open in Slack
Previous
Next