Fix helper class for coroutines
This commit is contained in:
committed by
Pavel Punegov
parent
b2fbe5d721
commit
06bbf18ca7
@@ -101,6 +101,12 @@ fun createTextForHelpers(isReleaseCoroutines: Boolean): String {
|
|||||||
| var finished = false
|
| var finished = false
|
||||||
|
|
|
|
||||||
| var proceed: () -> Unit = {}
|
| var proceed: () -> Unit = {}
|
||||||
|
|
|
||||||
|
| fun reset() {
|
||||||
|
| counter = 0
|
||||||
|
| finished = false
|
||||||
|
| proceed = {}
|
||||||
|
| }
|
||||||
|
|
|
|
||||||
| suspend fun suspendHere() = suspendCoroutine<Unit> { c ->
|
| suspend fun suspendHere() = suspendCoroutine<Unit> { c ->
|
||||||
| counter++
|
| counter++
|
||||||
|
|||||||
Reference in New Issue
Block a user