com.nthportal.testing.concurrent
Contains this Executor as an implicit
ExecutionContext.
Executes all tasks waiting to be executed.
Executes all tasks waiting to be executed.
the number of tasks executed
Executes count
tasks waiting to be executed, or all
tasks if there are fewer waiting.
Executes count
tasks waiting to be executed, or all
tasks if there are fewer waiting.
the maximum number of tasks to execute
Executes the next waiting task.
Executes the next waiting task.
NoSuchElementException
if there is no task waiting
to be executed
Executes the next waiting task, if one exists.
Executes the next waiting task, if one exists.
true
if the next tasks was executed; false
if there are no tasks waiting
Returns the number of tasks waiting to be executed.
Returns the number of tasks waiting to be executed.
the number of tasks waiting to be executed
An Executor whose tasks can be executed manually in the current thread when desired, for fine-grained control over when tasks are executed.