nee-core / dev.neeffect.nee.effects.async / ThreadedExecutionContextProvider

ThreadedExecutionContextProvider

class ThreadedExecutionContextProvider : ExecutionContextProvider

Constructors

<init>

ThreadedExecutionContextProvider(threads: Int = 4)

Properties

executor

val executor: ExecutorService!

executorUsingContext

val executorUsingContext: ExecutorExecutionContext

Functions

findExecutionContext

Find correct execution context.

fun findExecutionContext(local: Option<ExecutionContext>): ExecutionContext