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

function libtmux-kotlin

withPrivateServer

Starts a private tmux server, runs block, and ends the server — even if block throws or is cancelled. Closing it removes the server's directory and throws if the server still answers.

Source and package
Qualified name
io.github.libtmux.kotlin.withPrivateServer
Package
io.github.libtmux.kotlin
Distribution
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Scopes.kt
public Kotlin suspending functionsAllows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself.Language documentation fun <R> withPrivateServer( launch: ServerLaunch = ServerLaunch.builder().build(), policy: ExecutionPolicy = ExecutionPolicy.default(ServerConfig.builder().build()), block: Kotlin suspending functionsAllows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself.Language documentation (Server) -> R, ): R
Type parameters
Parameters
  • launch (ServerLaunch)

    Default ServerLaunch.builder().build()

  • policy (ExecutionPolicy)

    Default ExecutionPolicy.default(ServerConfig.builder().build())

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

Recorded calls

source calls
No call edges in the Kotlin model.

The Kotlin reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls io.github.libtmux.kotlin.withPrivateServer.

Esc
Search in

Type to search.

Reference previewOpen reference