Core Library0.xAPI Reference

Choose documentation 3

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.

interface libtmux-ts latest

TmuxEventStream

A live stream of tmux control-mode events.

Source and package
Qualified name
TmuxEventStream
Module
types
Package
libtmux
Source
packages/libtmux/src/types.ts
interface types.TmuxEventStream

Description#

Async iterable and async disposable, so await using ends the connection on scope exit even when the loop throws. The events are consumed, not replayed, so a stream is iterated once.

Members5#

  • [Symbol.asyncDispose] method
  • close method End the connection. Safe to call more than once.
  • dropped: number property Events discarded because the consumer fell behind.
  • find method Resolve with the first event matches accepts, or undefined if the deadline passes or the stream is closed first.
  • ready method Resolve once tmux has accepted the current attach, or reject with its reason.
Esc

Type to search.

Reference previewOpen reference