simon.vergauwen
05/17/2019, 7:20 PMsuspendCoroutineCancelable
from kotlinx works but you could leverage that to build in support for cancelation as well.
unsafeRunAsyncCancelable
returns a Disposable
typealias for () -> Unit
which you can run to cancel the IO
.