AppExecutor

interface AppExecutor

Defines the interface expected for an application-level executor; there is a default implementation provided by the framework, which uses Guava executors integrated with Kotlin Coroutines.

See more about Guava concurrent execution tools here: https://github.com/google/guava/wiki

See more about Kotlin Coroutines here: https://kotlinlang.org/docs/coroutines-overview.html

See also

for the default AppExecutor implementation.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Context
@Singleton
class DefaultExecutor @Inject constructor(uncaughtHandler: Thread.UncaughtExceptionHandler) : AppExecutor

Implements the application-default-executor, as a bridge to Micronaut.

Link copied to clipboard

Default settings applied to an application executor.

Functions

Link copied to clipboard
open fun executor(): Executor
Link copied to clipboard
abstract fun service(): ListeningExecutorService