|
|
@ -159,10 +159,12 @@ class Coroutine<T>( |
|
|
|
error?.let { dispatchCallback(this, e, it) } |
|
|
|
error?.let { dispatchCallback(this, e, it) } |
|
|
|
} |
|
|
|
} |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
|
|
|
|
withContext(NonCancellable) { |
|
|
|
finally?.let { dispatchVoidCallback(this, it) } |
|
|
|
finally?.let { dispatchVoidCallback(this, it) } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private suspend inline fun dispatchVoidCallback(scope: CoroutineScope, callback: VoidCallback) { |
|
|
|
private suspend inline fun dispatchVoidCallback(scope: CoroutineScope, callback: VoidCallback) { |
|
|
|
if (null == callback.context) { |
|
|
|
if (null == callback.context) { |
|
|
|