diff --git a/src/dorkbox/network/other/SuspendWaiter.kt b/src/dorkbox/network/other/SuspendWaiter.kt index 1eeec056..0cbe1afc 100644 --- a/src/dorkbox/network/other/SuspendWaiter.kt +++ b/src/dorkbox/network/other/SuspendWaiter.kt @@ -3,6 +3,7 @@ package dorkbox.network.other import kotlinx.coroutines.channels.Channel // this is bi-directional waiting. The method names to not reflect this, however there is no possibility of race conditions w.r.t. waiting +// https://stackoverflow.com/questions/55421710/how-to-suspend-kotlin-coroutine-until-notified // https://kotlinlang.org/docs/reference/coroutines/channels.html inline class SuspendWaiter(private val channel: Channel = Channel(0)) { // "receive' suspends until another coroutine invokes "send"