abstract class Executor extends ExecutorPlatformSpecific
An executor is responsible for executing actions. Each action is guaranteed to begin execution on a fresh stack frame.
- Self Type
- Executor
- Alphabetic
- By Inheritance
- Executor
- ExecutorPlatformSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Executor()
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- lazy val asExecutionContext: ExecutionContext
Views this
Executor
as a ScalaExecutionContext
. - lazy val asExecutionContextExecutorService: ExecutionContextExecutorService
Views this
Executor
as a ScalaExecutionContextExecutorService
.Views this
Executor
as a ScalaExecutionContextExecutorService
.- Definition Classes
- ExecutorPlatformSpecific
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val asJava: java.util.concurrent.Executor
Views this
Executor
as a JavaExecutor
. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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.
NOTE: The implementation of this method in the ZScheduler will attempt to run the runnable on the current thread if the current worker's queues are empty. This leads to improved performance as we avoid unnecessary parking/un-parking of threads.
- 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.
- See also
submitAndYield for an explanation of the implementation in ZScheduler.
- final def submitOrThrow(runnable: Runnable)(implicit unsafe: Unsafe): Unit
Submits an effect for execution or throws.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()