PollingSystem

cats.effect.unsafe.PollingSystem
abstract class PollingSystem

Attributes

Source
PollingSystem.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SleepSystem.type

Members list

Type members

Types

type Api <: AnyRef

The user-facing interface.

The user-facing interface.

Attributes

Source
PollingSystem.scala
type Poller <: AnyRef

The thread-local data structure used for polling.

The thread-local data structure used for polling.

Attributes

Source
PollingSystem.scala

Value members

Abstract methods

def close(): Unit

Attributes

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

Attributes

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

Attributes

Source
PollingSystem.scala
def makeApi(register: (Poller => Unit) => Unit): Api

Attributes

Source
PollingSystem.scala

Attributes

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

Attributes

Returns

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

Source
PollingSystem.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
PollingSystem.scala