Skip to content

Commit

Permalink
Process the queue while being parked
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed Aug 23, 2021
1 parent 3c44807 commit 91289bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/native/src/Builders.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private class BlockingCoroutine<T>(
}
// note: process next even may loose unpark flag, so check if completed before parking
if (isCompleted) break
joinWorker.park(parkNanos / 1000L)
joinWorker.park(parkNanos / 1000L, true)
}
} finally { // paranoia
eventLoop?.decrementUseCount()
Expand Down

0 comments on commit 91289bd

Please sign in to comment.