Skip to content

Commit

Permalink
Merge pull request #3938 from armanbilge/issue/3848
Browse files Browse the repository at this point in the history
Reset auto-cede counter after `blocking`
  • Loading branch information
djspiewak authored Jan 9, 2024
2 parents adc72fe + b442eb2 commit e93ee75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/shared/src/main/scala/cats/effect/IOFiber.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,8 @@ private final class IOFiber[A](
}

val next = if (error eq null) succeeded(r, 0) else failed(error, 0)
runLoop(next, nextCancelation, nextAutoCede)
// reset auto-cede counter
runLoop(next, nextCancelation, runtime.autoYieldThreshold)
} else {
blockingFallback(cur)
}
Expand Down

0 comments on commit e93ee75

Please sign in to comment.