SleepSystem

cats.effect.unsafe.SleepSystem$
object SleepSystem extends PollingSystem

Attributes

Source:
SleepSystem.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final class Api

The user-facing interface.

The user-facing interface.

Attributes

Source:
SleepSystem.scala
Graph
Supertypes
class Object
trait Matchable
class Any
final class Poller

The thread-local data structure used for polling.

The thread-local data structure used for polling.

Attributes

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

Value members

Concrete methods

def closePoller(Poller: Poller): Unit

Attributes

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

Attributes

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

Attributes

Source:
SleepSystem.scala

Attributes

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

Attributes

Returns:

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

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

Attributes

nanos

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

Returns:

whether any events were polled

Source:
SleepSystem.scala