On this page
types.TmuxEventStream.find
- Module
- types
- Declared in
- TmuxEventStream
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/types.ts
-
Resolve with the first event
matchesaccepts, or undefined if the deadline passes or the stream is closed first.This consumes the stream, which is what iterating it does anyway. It exists because every caller otherwise writes the same loop, deadline, and cleanup, and forgetting the deadline turns a missed event into a hang.
0 declared, 0 inherited