object WorkerPools
- Alphabetic
- By Inheritance
- WorkerPools
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- implicit def currentExecutionContext: ExecutionContext
- implicit def currentPool: Option[WorkerPool]
- returns
Some if the current thread is a member of a WorkerPool, None instead
- def currentTask: Option[WorkerTask[_]]
- def currentTaskWithController: Option[WorkerTask[_] with AsyncTaskController]
- def currentWorker: Worker
- def currentWorkerOpt: Option[Worker]
- def ensureCurrentIsNotWorker(): Unit
- Exceptions thrown
IllegalThreadException
if the current thread is not a Worker
- def ensureCurrentIsNotWorker(msg: String): Unit
- msg
the message to complain with the exception
- Exceptions thrown
IllegalThreadException
if the current thread is not a Worker
- def ensureCurrentIsWorker(): WorkerPool
- Exceptions thrown
IllegalThreadException
if the current thread is a Worker
- def ensureCurrentIsWorker(msg: String): WorkerPool
- msg
the message to complain with the exception
- Exceptions thrown
IllegalThreadException
if the current thread is a Worker
- 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() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def ifCurrentWorkerOrElse[A](ifCurrent: (WorkerPool) => A, orElse: => A): A
Toggles between two actions if the current thread is an instance of Worker
Toggles between two actions if the current thread is an instance of Worker
- ifCurrent
The action to process if the current thread is a worker thread. The given entry is the current thread pool
- orElse
the action to process if the current thread is not a worker thread.
- def isCurrentThreadWorker: Boolean
- returns
true
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newClosedPool(name: String, initialThreadCount: Int = 0): ClosedWorkerPool
- def newHiringPool(name: String): HiringWorkerPool
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def runLaterInCurrentPool(action: => Unit): Unit
- def runLaterOrHere(action: => Unit): Unit
This method may execute the given action into the current thread pool.
This method may execute the given action into the current thread pool. If the current execution thread is not a worker thread, this would mean that we are not running into a thread that is owned by the concurrency system. Therefore, the action may be performed in the current thread
- action
the action to perform
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated