Packages

o

cats.effect.unsafe

SleepSystem

object SleepSystem extends PollingSystem

Source
SleepSystem.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SleepSystem
  2. PollingSystem
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Api = AnyRef

    The user-facing interface.

    The user-facing interface.

    Definition Classes
    SleepSystemPollingSystem
  2. type Poller = AnyRef

    The thread-local data structure used for polling.

    The thread-local data structure used for polling.

    Definition Classes
    SleepSystemPollingSystem

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def close(): Unit

    Closes the polling system.

    Closes the polling system.

    Definition Classes
    SleepSystemPollingSystem
  7. def closePoller(Poller: Poller): Unit

    Closes a specific poller.

    Closes a specific poller.

    Definition Classes
    SleepSystemPollingSystem
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def interrupt(targetThread: Thread, targetPoller: Poller): Unit

    Interrupts a specific target poller running on a specific target thread.

    Interrupts a specific target poller running on a specific target thread.

    targetThread

    is the thread where the target poller is running.

    targetPoller

    is the poller to be interrupted.

    Definition Classes
    SleepSystemPollingSystem
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def makeApi(access: ((Poller) ⇒ Unit) ⇒ Unit): Api

    Creates a new instance of the user-facing interface.

    Creates a new instance of the user-facing interface.

    access

    callback to obtain a thread-local Poller.

    returns

    an instance of the user-facing interface Api.

    Definition Classes
    SleepSystemPollingSystem
  16. def makePoller(): Poller

    Creates a new instance of the thread-local data structure used for polling.

    Creates a new instance of the thread-local data structure used for polling.

    returns

    an instance of the poller Poller.

    Definition Classes
    SleepSystemPollingSystem
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def needsPoll(poller: Poller): Boolean

    returns

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

    Definition Classes
    SleepSystemPollingSystem
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def poll(poller: Poller, nanos: Long, reportFailure: (Throwable) ⇒ Unit): Boolean

    poller

    the thread-local Poller used to poll events.

    nanos

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

    reportFailure

    callback that handles any failures that occur during polling.

    returns

    whether any events were polled. e.g. if the method returned due to timeout, this should be false.

    Definition Classes
    SleepSystemPollingSystem
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from PollingSystem

Inherited from AnyRef

Inherited from Any

Ungrouped