datomisca

executioncontext

package executioncontext

Visibility
  1. Public
  2. All

Type Members

  1. trait Context extends AnyRef

    A Context containing the implicit ExecutionContext and ExecutorService It creates an executioncontext based on a pool of threads defined by 3 parameters:

    A Context containing the implicit ExecutionContext and ExecutorService It creates an executioncontext based on a pool of threads defined by 3 parameters:

    • min : the minimum number of threads in the pool
    • num : the expected number of threads in the pool or a multiplier of the nb of cores (2x, 4x)
    • max : the maximum number of threads in the pool
  2. class CustomExecutionContext extends ExecutionContextExecutor

    Just shamefully copying scala ExecutionContext implementation based on ForkJoinPool and simplifying it a bit for my purpose ;)

Value Members

  1. object ExecutionContextHelper extends Context

    DefaultImplicits to import when using play2-async-nio outside Play2 to have implicit ExecutionContext and ExecutorService

    DefaultImplicits to import when using play2-async-nio outside Play2 to have implicit ExecutionContext and ExecutorService

    import datomisca.executioncontext.ExecutionContextHelper._

Ungrouped