PollingSystem
cats.effect.unsafe.PollingSystem
Attributes
- Source:
- PollingSystem.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class SelectorSystemobject SleepSystem.type
Members list
Concise view
Type members
Types
The user-facing interface.
The thread-local data structure used for polling.
Value members
Abstract methods
Attributes
- Source:
- PollingSystem.scala
Attributes
- Source:
- PollingSystem.scala
Attributes
- Source:
- PollingSystem.scala
Attributes
- Source:
- PollingSystem.scala
Attributes
- Returns:
whether poll should be called again (i.e., there are more events to be polled)
- Source:
- PollingSystem.scala
Attributes
- nanos
the maximum duration for which to block, where
nanos == -1
indicates to block indefinitely. ''However'', ifnanos == -1
and there are no remaining events to poll for, this method should returnfalse
immediately. This is unfortunate but necessary so that theEventLoop
can yield to the Scala Native globalExecutionContext
which is currently hard-coded into every test framework, including MUnit, specs2, and Weaver.- Returns:
whether any events were polled
- Source:
- PollingSystem.scala