zen_sync_barrier
Wait for multiple browser tabs to become ready by polling a JavaScript predicate on each tab. Replaces manual readiness checks with a single barrier that unblocks once all tabs satisfy the condition.
Instructions
Block until a JS predicate returns truthy on every listed tab.
Replaces hand-rolled "wait for everything to be ready" loops.
Args: tab_ids: Tabs to monitor. predicate: JS expression that returns truthy when the tab is ready, e.g. "!!document.querySelector('.results')". timeout: Overall timeout in ms. poll_interval: Per-poll interval in ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_ids | Yes | ||
| predicate | Yes | ||
| timeout | No | ||
| poll_interval | No |