Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

method libtmux-kotlin latest

ControlClient.events

Package io.github.libtmux.kotlin.ControlClient.events io.github.libtmux.kotlin

State changes tmux volunteers, as a cold Flow . Reads, and takes onSubscribed , as output does.

View as Markdown

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<ControlEvent>>
method [source]
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

Esc

Type to search.