优化
This commit is contained in:
@@ -146,9 +146,9 @@ class Coroutine<T>(
|
|||||||
cancel?.let {
|
cancel?.let {
|
||||||
DEFAULT.launch(executeContext) {
|
DEFAULT.launch(executeContext) {
|
||||||
if (null == it.context) {
|
if (null == it.context) {
|
||||||
it.block.invoke(scope)
|
it.block.invoke(this)
|
||||||
} else {
|
} else {
|
||||||
withContext(scope.coroutineContext + it.context) {
|
withContext(it.context) {
|
||||||
it.block.invoke(this)
|
it.block.invoke(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user