Skip to content

Commit 3845296

Browse files
authored
Merge pull request #4603 from antoniojimeneznieto/kqueue-epoll-polling-ticks
Derive MaxEvents from PollingTicks in Epoll and Kqueue polling systems
2 parents 6b91d3a + b4ad3fc commit 3845296

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/native/src/main/scala/cats/effect/unsafe/EpollSystem.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ object EpollSystem extends PollingSystem {
4040
import epoll._
4141
import epollImplicits._
4242

43-
private[this] final val MaxEvents = 64
43+
private[this] final val MaxEvents = WorkStealingThreadPoolConstants.PollingTicks
4444

4545
type Api = FileDescriptorPoller
4646

core/native/src/main/scala/cats/effect/unsafe/KqueueSystem.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object KqueueSystem extends PollingSystem {
3939
import event._
4040
import eventImplicits._
4141

42-
private final val MaxEvents = 64
42+
private final val MaxEvents = WorkStealingThreadPoolConstants.PollingTicks
4343

4444
type Api = Kqueue
4545

0 commit comments

Comments
 (0)