Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

class libtmux-kotlin latest

ExecutionPolicy

Package io.github.libtmux.kotlin.ExecutionPolicy io.github.libtmux.kotlin

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

View as Markdown

Source and package
Module
io.github.libtmux.kotlin
Package
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, )
class [source]

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.

Parameters

Discussed in Getting started

Members4 members#

Common operations2 members#

Other members2 members#

Esc

Type to search.