Skip to content

Commit b4ad3fc

Browse files
Replace MaxEvents value with PollingTicks in Epoll and Kqueue
1 parent d085024 commit b4ad3fc

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)