The default reporter simply prints the stack trace of the Throwable to System.err.
The default reporter simply prints the stack trace of the Throwable to System.err.
the function for error reporting
Creates an ExecutionContext from the given Executor with the default reporter.
Creates an ExecutionContext from the given Executor with the default reporter.
the Executor to use. If null, a new Executor is created with default configuration.
the ExecutionContext using the given Executor
Creates an ExecutionContext from the given Executor.
Creates an ExecutionContext from the given Executor.
the Executor to use. If null, a new Executor is created with default configuration.
a function for error reporting
the ExecutionContext using the given Executor
Creates an ExecutionContext from the given ExecutorService with the default reporter.
Creates an ExecutionContext from the given ExecutorService with the default reporter.
If it is guaranteed that none of the executed tasks are blocking, a single-threaded ExecutorService
can be used to create an ExecutionContext as follows:
import java.util.concurrent.Executors val ec = ExecutionContext.fromExecutorService(Executors.newSingleThreadExecutor())
the ExecutorService to use. If null, a new ExecutorService is created with default configuration.
the ExecutionContext using the given ExecutorService
Creates an ExecutionContext from the given ExecutorService.
Creates an ExecutionContext from the given ExecutorService.
the ExecutorService to use. If null, a new ExecutorService is created with default configuration.
a function for error reporting
the ExecutionContext using the given ExecutorService
The explicit global ExecutionContext.
The explicit global ExecutionContext. Invoke global when you want to provide the global
ExecutionContext explicitly.
The default ExecutionContext implementation is backed by a work-stealing thread pool. By default,
the thread pool uses a target number of worker threads equal to the number of
available processors.
the global ExecutionContext
Contains factory methods for creating execution contexts.