SameThreadExecutorService
An ExecutorService that executes tasks immediately in the calling thread during submit.
Properties
Functions
Link copied to clipboard
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
Link copied to clipboard
open suspend override fun <T> invokeAll(tasks: MutableCollection<Callable<T>>): MutableList<Future<T>>
open suspend override fun <T> invokeAll(tasks: MutableCollection<Callable<T>>, timeout: Long, unit: TimeUnit): MutableList<Future<T>>
Link copied to clipboard
Returns a RunnableFuture for the given callable task.
Returns a RunnableFuture for the given runnable and default value.
Link copied to clipboard
Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.