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

Type members

Classlikes

final class Poller

The thread-local data structure used for polling.

The thread-local data structure used for polling.

Attributes

Source
SelectorSystem.scala
Supertypes
class Object
trait Matchable
class Any
final class SelectorImpl extends Selector

Attributes

Source
SelectorSystem.scala
Supertypes
trait Selector
class Object
trait Matchable
class Any

Types

type Api = Selector

The user-facing interface.

The user-facing interface.

Attributes

Source
SelectorSystem.scala

Value members

Concrete methods

def close(): Unit

Attributes

Source
SelectorSystem.scala
def closePoller(poller: Poller): Unit

Attributes

Source
SelectorSystem.scala
def interrupt(targetThread: Thread, targetPoller: Poller): Unit

Attributes

Source
SelectorSystem.scala
def makeApi(register: (Poller => Unit) => Unit): Selector

Attributes

Source
SelectorSystem.scala

Attributes

Source
SelectorSystem.scala
def needsPoll(poller: Poller): Boolean

Attributes

Returns

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

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

Value parameters

nanos

the maximum duration for which to block, where nanos == -1 indicates to block indefinitely.

Attributes

Returns

whether any events were polled

Source
SelectorSystem.scala