We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6619690 + 1b0eca9 commit 8646c8cCopy full SHA for 8646c8c
kotlinx-coroutines-core/common/src/channels/AbstractChannel.kt
@@ -1051,7 +1051,7 @@ internal class SendElement(
1051
) : Send() {
1052
override fun tryResumeSend(otherOp: PrepareOp?): Symbol? {
1053
otherOp?.finishPrepare()
1054
- val token = cont.tryResume(Unit, otherOp?.desc)
+ val token = cont.tryResume(Unit, otherOp?.desc) ?: return null
1055
assert { token === RESUME_TOKEN } // the only other possible result
1056
return RESUME_TOKEN
1057
}
0 commit comments