Pane.run
Runs a shell command in this pane to its end, and answers with its exit status and output.
Source and package
- Qualified name
-
io.github .libtmux .kotlin .Pane. run - Package
- io.github.libtmux.kotlin
- Declared in
Pane- Distribution
- io.github.libtmux:libtmux-kotlin
- Source
- libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.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. fun run( command: String, timeout: Duration, dispatcher: CoroutineDispatcher = Dispatchers.IO , ): PaneRun -
Description
Cancelling the coroutine interrupts the wait. The command keeps running in the pane; only the wait for its end is what cancellation reaches.
- Parameters
-
-
command(String) – a line of shell, run asevalwould run it -
dispatcher(CoroutineDispatcher ) – where the blocking wait runsDefault
Dispatchers.IO
-
- Returns
-
the command's exit status and what it printed
Recorded calls
source callsThe 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.Pane.run.