ExecutionPolicy
Controls the dispatchers and concurrency limits for a Server's suspending operations.
Source and package
- Qualified name
-
io.github .libtmux .kotlin. Execution Policy - Package
- io.github.libtmux.kotlin
- Distribution
- io.github.libtmux:libtmux-kotlin
- Source
- libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ExecutionPolicy.kt
- public class ExecutionPolicy( public val commands: Coroutine
Dispatcher , public val streamReads: CoroutineDispatcher , public val defaultDeadline: Duration = Duration.INFINITE, ) -
Description
Two independently sized pools, not one:
commandsbacks everysuspendoperation this module generates or hand-writes, sized from the transport's own admission bound rather than a guess.streamReadsbacks only what still genuinely blocks a thread —Server.liveState's background pump.ControlClient.outputandControlClient.eventshold no thread from either pool; they are built onio.github.libtmux.control.EventSubscription.pollandonReady, not on a blocking read.- Parameters
-
-
Default
Duration.INFINITE
Members4 members
Common operations2
- commands property
- streamReads property
Other members2
- Companion module
- defaultDeadline property
Guides
task materialPages that discuss ExecutionPolicy.