object ExecutionContexts
- Alphabetic
- By Inheritance
- ExecutionContexts
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
fromExecutor(executor: Executor, errorReporter: Procedure[Throwable]): ExecutionContextExecutor
Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the provided error reporter.
Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the provided error reporter.
- executor
the Executor which will be used for the ExecutionContext
- errorReporter
a Procedure that will log any exceptions passed to it
- returns
a new ExecutionContext
-
def
fromExecutor(executor: Executor): ExecutionContextExecutor
Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the default error reporter.
Returns a new ExecutionContextExecutor which will delegate execution to the underlying Executor, and which will use the default error reporter.
- executor
the Executor which will be used for the ExecutionContext
- returns
a new ExecutionContext
-
def
fromExecutorService(executorService: ExecutorService, errorReporter: Procedure[Throwable]): ExecutionContextExecutorService
Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the provided error reporter.
Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the provided error reporter.
- executorService
the ExecutorService which will be used for the ExecutionContext
- errorReporter
a Procedure that will log any exceptions passed to it
- returns
a new ExecutionContext
-
def
fromExecutorService(executorService: ExecutorService): ExecutionContextExecutorService
Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the default error reporter.
Returns a new ExecutionContextExecutorService which will delegate execution to the underlying ExecutorService, and which will use the default error reporter.
- executorService
the ExecutorService which will be used for the ExecutionContext
- returns
a new ExecutionContext
-
def
global(): ExecutionContextExecutor
- returns
a reference to the global ExecutionContext