Skip to content

Commit

Permalink
fix coroutines DelicateCoroutinesApi usage
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Nov 13, 2023
1 parent 67573af commit 37430b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal suspend inline fun FlowCollector<Payload>.emitAllWithRequestN(
) {
val collector = object : RequestFlowCollector(this, strategy) {
override suspend fun onRequest(n: Int) {
@OptIn(ExperimentalCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class)
if (!channel.isClosedForReceive) onRequest(n)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ internal class RequesterRequestChannelFrameHandler(
return isCancelled
}

@OptIn(ExperimentalCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class)
override fun onSendComplete() {
if (channel.isClosedForSend) streamsStorage.remove(id)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ internal class ResponderRequestChannelFrameHandler(
}

override fun onSendComplete() {
@OptIn(ExperimentalCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class)
if (channel.isClosedForSend) streamsStorage.remove(id)
}

Expand Down

0 comments on commit 37430b0

Please sign in to comment.