ExecutionContexts

org.apache.pekko.dispatch.ExecutionContexts

ExecutionContexts is the Java API for ExecutionContexts

Attributes

Source
Future.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

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.

Value parameters

executor

the Executor which will be used for the ExecutionContext

Attributes

Returns

a new ExecutionContext

Source
Future.scala
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.

Value parameters

errorReporter

a Procedure that will log any exceptions passed to it

executor

the Executor which will be used for the ExecutionContext

Attributes

Returns

a new ExecutionContext

Source
Future.scala
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.

Value parameters

executorService

the ExecutorService which will be used for the ExecutionContext

Attributes

Returns

a new ExecutionContext

Source
Future.scala
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.

Value parameters

errorReporter

a Procedure that will log any exceptions passed to it

executorService

the ExecutorService which will be used for the ExecutionContext

Attributes

Returns

a new ExecutionContext

Source
Future.scala

Attributes

Returns

a reference to the global ExecutionContext

Source
Future.scala