Executor

abstract class Executor extends ExecutorPlatformSpecific

An executor is responsible for executing actions. Each action is guaranteed to begin execution on a fresh stack frame.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

Current sampled execution metrics, if available.

Current sampled execution metrics, if available.

def unsafeSubmit(runnable: Runnable): Boolean

Submits an effect for execution.

Submits an effect for execution.

def yieldOpCount: Int

The number of operations a fiber should run before yielding.

The number of operations a fiber should run before yielding.

Concrete methods

def unsafeSubmitAndYield(runnable: Runnable): Boolean

Submits an effect for execution and signals that the current fiber is ready to yield.

Submits an effect for execution and signals that the current fiber is ready to yield.

final def unsafeSubmitAndYieldOrThrow(runnable: Runnable): Unit

Submits an effect for execution and signals that the current fiber is ready to yield or throws.

Submits an effect for execution and signals that the current fiber is ready to yield or throws.

final def unsafeSubmitOrThrow(runnable: Runnable): Unit

Submits an effect for execution or throws.

Submits an effect for execution or throws.

Concrete fields

lazy val asExecutionContext: ExecutionContext

Views this Executor as a Scala ExecutionContext.

Views this Executor as a Scala ExecutionContext.

lazy val asJava: Executor

Views this Executor as a Java Executor.

Views this Executor as a Java Executor.

Inherited fields

lazy val asExecutionContextExecutorService: ExecutionContextExecutorService

Views this Executor as a Scala ExecutionContextExecutorService.

Views this Executor as a Scala ExecutionContextExecutorService.

Inherited from:
ExecutorPlatformSpecific