SelectorSystem

cats.effect.unsafe.SelectorSystem
See theSelectorSystem companion object
final class SelectorSystem extends PollingSystem

Attributes

Companion:
object
Source:
SelectorSystem.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Classlikes

final class PollData

The thread-local data structure used for polling.

The thread-local data structure used for polling.

Attributes

Source:
SelectorSystem.scala
Graph
Supertypes
class Object
trait Matchable
class Any
final class Poller extends SelectorPoller

The user-facing Poller interface.

The user-facing Poller interface.

Attributes

Source:
SelectorSystem.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

Attributes

Source:
SelectorSystem.scala
def interrupt(targetThread: Thread, targetData: PollData): Unit

Attributes

Source:
SelectorSystem.scala

Attributes

Source:
SelectorSystem.scala
def poll(data: PollData, nanos: Long, reportFailure: Throwable => Unit): Boolean

Attributes

nanos

the maximum duration for which to block, where nanos == -1 indicates to block indefinitely. ''However'', if nanos == -1 and there are no remaining events to poll for, this method should return false immediately. This is unfortunate but necessary so that the EventLoop can yield to the Scala Native global ExecutionContext which is currently hard-coded into every test framework, including MUnit, specs2, and Weaver.

Returns:

whether poll should be called again (i.e., there are more events to be polled)

Source:
SelectorSystem.scala