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

await

Waits for something to signal this channel.

Source and package
Qualified name
io.github.libtmux.Channel.await
Package
io.github.libtmux.Channel
Distribution
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.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 Channel.await( timeout: Duration, dispatcher: CoroutineDispatcher = Dispatchers.IO, ): WakeReason

Description

Cancelling the coroutine interrupts the wait. That is not a timeout. A wait-for tmux has already accepted is not taken back.

Parameters
Returns

why the wait ended

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.Channel.await.

Esc
Search in

Type to search.

Reference previewOpen reference