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
- All
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
Executoras a ScalaExecutionContext. -
lazy val
asExecutionContextExecutorService: ExecutionContextExecutorService
Views this
Executoras a ScalaExecutionContextExecutorService.Views this
Executoras a ScalaExecutionContextExecutorService.- Definition Classes
- ExecutorPlatformSpecific
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
asJava: java.util.concurrent.Executor
Views this
Executoras a JavaExecutor. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )