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

ExecutionContext

interface ExecutionContext

Technical interface for threading model.

Allows intrhead or real async execution.

Functions

execute

abstract fun <T> execute(f: () -> T): Future<T>

Inheritors

ExecutorExecutionContext

class ExecutorExecutionContext : ExecutionContext

SyncExecutionContext

In thread execution (immediate).

class SyncExecutionContext : ExecutionContext