Core Library0.xAPI reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

class libtmux-kotlin

ExecutionPolicy

Controls the dispatchers and concurrency limits for a Server's suspending operations.

Source and package
Qualified name
io.github.libtmux.kotlin.ExecutionPolicy
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: CoroutineDispatcher, public val streamReads: CoroutineDispatcher, public val defaultDeadline: Duration = Duration.INFINITE, )

Description

Two independently sized pools, not one: commands backs every suspend operation this module generates or hand-writes, sized from the transport's own admission bound rather than a guess. streamReads backs only what still genuinely blocks a thread — Server.liveState's background pump. ControlClient.output and ControlClient.events hold no thread from either pool; they are built on io.github.libtmux.control.EventSubscription.poll and onReady, not on a blocking read.

Members4 members

Common operations2

Other members2

Guides

task material

Pages that discuss ExecutionPolicy.

Esc
Search in

Type to search.

Reference previewOpen reference