优化
This commit is contained in:
1 parent
00eb98450c
commit
ad43356687
1 file changed
+2
-2
@@ -146,9 +146,9 @@ class Coroutine<T>(
|
||||
cancel?.let {
|
||||
DEFAULT.launch(executeContext) {
|
||||
if (null == it.context) {
|
||||
it.block.invoke(scope)
|
||||
it.block.invoke(this)
|
||||
} else {
|
||||
withContext(scope.coroutineContext + it.context) {
|
||||
withContext(it.context) {
|
||||
it.block.invoke(this)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user