method libtmux-kotlin latest
Pane.run
Runs a shell command in this pane to its end, and answers with its exit status and output.
Source and package
- Module
- io.github.libtmux.kotlin
- Declared in
- Pane
- Package
- io.github.libtmux:libtmux-kotlin
- Source
- libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.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 run( command: String, timeout: Duration, dispatcher: Coroutine
Dispatcher = 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 as
evalwould run it -
timeout ( Duration ) – how long to wait for it to end
-
dispatcher ( Coroutine
Dispatcher ) – where the blocking wait runs
-
- Returns
-
the command's exit status and what it printed