public class Executors extends Object
Constructor and Description |
---|
Executors() |
Modifier and Type | Method and Description |
---|---|
static scala.concurrent.ExecutionContext |
directExecutionContext()
Return a direct execution context.
|
static Executor |
directExecutor()
Return a direct executor.
|
static ExecutorService |
newDirectExecutorService()
Return a new direct executor service.
|
public static Executor directExecutor()
public static ExecutorService newDirectExecutorService()
The direct executor service directly executes the runnables and the callables in the calling thread.
public static scala.concurrent.ExecutionContext directExecutionContext()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.