Packages

package concurrent

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class DirectExecutionContext(logger: Logger) extends ExecutionContextExecutor with BatchingExecutorCanton with Product with Serializable

    A light-weight execution context that runs tasks on the thread calling execute.

    A light-weight execution context that runs tasks on the thread calling execute. Only use this for running tasks that will terminate very quickly.

  2. abstract class ExecutionContextIdlenessExecutorService extends QueueAwareExecutorService with IdlenessExecutorService with ExecutionContextExecutorService
  3. class ExecutionContextMonitor extends NamedLogging with FlagCloseable

    Debugging utility used to write at regular intervals the executor service queue size into the logfile

    Debugging utility used to write at regular intervals the executor service queue size into the logfile

    Useful to debug starvation issues.

  4. final case class ExecutorServiceExtensions[EC <: ExecutorService](executorService: EC)(logger: TracedLogger, timeouts: ProcessingTimeout) extends AutoCloseable with Product with Serializable
  5. class ForkJoinIdlenessExecutorService extends ExecutionContextIdlenessExecutorService
  6. trait FutureSupervisor extends AnyRef

    Alert if a future does not complete within the prescribed duration

    Alert if a future does not complete within the prescribed duration

    We use future based synchronisation in some places, where we use a promise to only kick off an action once a promise is completed. This can lead to deadlocks where something does not start because we never complete the promise. This leads to hard to debug situations. We can support debugging by tracking such futures. As this is costly, we'll turn this off in production.

    See also

    HasFutureSupervision for a mixin

  7. trait HasFutureSupervision extends AnyRef

    Mixin-trait for classes that want to run some futures with supervision using a FutureSupervisor strategy

  8. trait IdlenessExecutorService extends ExecutorService
  9. class SupervisedPromise[T] extends Promise[T]

    Promise that will log a message after logAfter if it has not been completed.

  10. class ThreadPoolIdlenessExecutorService extends ExecutionContextIdlenessExecutorService

Value Members

  1. object DirectExecutionContext extends Serializable
  2. object FutureSupervisor
  3. object Threading

    Factories and utilities for dealing with threading.

Ungrouped