method libtmux-kotlin latest
ControlClient.events
State changes tmux volunteers, as a cold Flow . Reads, and takes onSubscribed , as output does.
Source and package
- Module
- io.github.libtmux.kotlin
- Declared in
- ControlClient
- Package
- io.github.libtmux:libtmux-kotlin
- Source
- libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt
- public fun events(capacity: Int, onSubscribed: 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 () -> Unit = {}): Flow<Delivery<Control
Event >> -
- Parameters
-
-
capacity ( Int )
-
onSubscribed ( 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 Coroutines and flows , Getting started