IoExecutionContext

cc.otavia.core.reactor.IoExecutionContext

The execution context for an IoHandler. All method must be called from the Reactor thread.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def canBlock: Boolean

Returns true if blocking for IO is allowed or if we should try to do a non-blocking request for IO to be ready.

Returns true if blocking for IO is allowed or if we should try to do a non-blocking request for IO to be ready.

Attributes

Concrete methods

def canNotBlock: Boolean
def deadlineNanos: Long

Returns the absolute point in time at which the next closest scheduled task should run or -1 if nothing is scheduled to run.

Returns the absolute point in time at which the next closest scheduled task should run or -1 if nothing is scheduled to run.

Attributes

def delayNanos(currentTimeNanos: Long): Long

Returns the amount of time left until the scheduled task with the closest deadline should run.

Returns the amount of time left until the scheduled task with the closest deadline should run.

Attributes