Object/Trait

scala.concurrent

ExecutionContext

Related Docs: trait ExecutionContext | package concurrent

Permalink

object ExecutionContext

Contains factory methods for creating execution contexts.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutionContext
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Implicits

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def defaultReporter: (Throwable) ⇒ Unit

    Permalink

    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.

    returns

    the function for error reporting

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromExecutor(e: Executor): ExecutionContextExecutor

    Permalink

    Creates an ExecutionContext from the given Executor with the default reporter.

    Creates an ExecutionContext from the given Executor with the default reporter.

    e

    the Executor to use. If null, a new Executor is created with default configuration.

    returns

    the ExecutionContext using the given Executor

  12. def fromExecutor(e: Executor, reporter: (Throwable) ⇒ Unit): ExecutionContextExecutor

    Permalink

    Creates an ExecutionContext from the given Executor.

    Creates an ExecutionContext from the given Executor.

    e

    the Executor to use. If null, a new Executor is created with default configuration.

    reporter

    a function for error reporting

    returns

    the ExecutionContext using the given Executor

  13. def fromExecutorService(e: ExecutorService): ExecutionContextExecutorService

    Permalink

    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())
    e

    the ExecutorService to use. If null, a new ExecutorService is created with default configuration.

    returns

    the ExecutionContext using the given ExecutorService

  14. def fromExecutorService(e: ExecutorService, reporter: (Throwable) ⇒ Unit): ExecutionContextExecutorService

    Permalink

    Creates an ExecutionContext from the given ExecutorService.

    Creates an ExecutionContext from the given ExecutorService.

    e

    the ExecutorService to use. If null, a new ExecutorService is created with default configuration.

    reporter

    a function for error reporting

    returns

    the ExecutionContext using the given ExecutorService

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def global: ExecutionContextExecutor

    Permalink

    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.

    returns

    the global ExecutionContext

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped