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.

function libtmux-kotlin latest

withControl

Package io.github.libtmux.kotlin.withControl io.github.libtmux.kotlin

As withServer , for a ControlClient attached through server .

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/Scopes.kt
public Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation fun <R> withControl( server: Server, session: Session, timeout: Duration = server.config.defaultTimeout().toKotlinDuration(), block: Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation (ControlClient) -> R, ): R
functionasync [source]
Parameters
  • server ( Server )

  • session ( Session )

  • timeout ( Duration )

  • block ( Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation )

Discussed in Commands and control mode · Getting started

Esc

Type to search.