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 29, 2021
1 parent e90b8de commit f96de23
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 f96de23

Please sign in to comment.