Commit 47cdec2
committed
docs(tools[pane/wait-for-channel]): restore wait-for safety contract intro
Hoist the composition pattern + status=$? idiom the mechanical split
dropped. Original prose lives at 970b000:docs/tools/waits.md:1-21.
The function docstring carries the idiom at the tool level, but the
page-level composition pattern (send_keys → wait_for_channel with
on-crash signal emission) was absent from the per-tool page.
Content restored:
- tmux wait-for channels as cheaper-than-polling synchronization.
- Composition pattern: send_keys a command that signals on exit,
then wait_for_channel.
- The load-bearing safety idiom: ; status=$?; tmux wait-for -S NAME;
exit $status, explaining edge-triggered wait-for would deadlock
until timeout if the shell crashes before emitting.
Also strips a trailing '---\n## Signal' artifact left by the
mechanical splitter when it hit the old area page's next section
heading; signal_channel has its own page at pane/signal-channel.md.1 parent 0d086be commit 47cdec2
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
| |||
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| |||
0 commit comments