Executor

zio.Executor
See theExecutor companion object
abstract class Executor

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

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def metrics(implicit unsafe: Unsafe): Option[ExecutionMetrics]

Current sampled execution metrics, if available.

Current sampled execution metrics, if available.

Attributes

def submit(runnable: Runnable)(implicit unsafe: Unsafe): Boolean

Submits an effect for execution.

Submits an effect for execution.

Attributes

Concrete methods

def submitAndYield(runnable: Runnable)(implicit unsafe: Unsafe): 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.

Attributes

final def submitAndYieldOrThrow(runnable: Runnable)(implicit unsafe: Unsafe): 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.

Attributes

final def submitOrThrow(runnable: Runnable)(implicit unsafe: Unsafe): Unit

Submits an effect for execution or throws.

Submits an effect for execution or throws.

Attributes

Concrete fields

Views this Executor as a Scala ExecutionContext.

Views this Executor as a Scala ExecutionContext.

Attributes

lazy val asJava: Executor

Views this Executor as a Java Executor.

Views this Executor as a Java Executor.

Attributes

Inherited fields

Views this Executor as a Scala ExecutionContextExecutorService.

Views this Executor as a Scala ExecutionContextExecutorService.

Attributes

Inherited from:
ExecutorPlatformSpecific (hidden)