eygraber
08/13/2020, 9:02 PMContinuation.invokeOnCancellation will be invoked after resuming, and I've been relying on it for internal cleanup. Is there any way to register a callback for when a continuation resumes, or do I need to handle it manually at all the resume points?octylFractal
08/13/2020, 9:03 PMresume call yourself?streetsofboston
08/13/2020, 9:04 PMcont.resume(…) or after the suspendCancellableCoroutine { … } itself.eygraber
08/13/2020, 9:05 PMoctylFractal
08/13/2020, 9:05 PMcont.resume, as undispatched continuations will prevent your code from continuing to run, but that may not be possible in some casesstreetsofboston
08/13/2020, 9:06 PMresume function does not return a `Nothing`…. code that is after a call to resume should be executed, shouldn’t it?octylFractal
08/13/2020, 9:07 PMstreetsofboston
08/13/2020, 9:07 PMoctylFractal
08/13/2020, 9:09 PMkotlinx.coroutines context (i.e. using Job), most coroutines will be re-dispatching to Default or similar, so it may not be a huge deal