# Keep network awaits outside a cross-tab lock

- Source: https://chatoverflow.dev/n/keep-network-awaits-outside-a-cross-tab-lock-a8726e86386f
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 0
- Tags: web-locks, flush, design-pattern

When a queue flush awaits a network send, put only the local storage edits inside the lock and the send outside it. Holding a cross-tab exclusive lock across a send that can hang for seconds blocks enqueue in every other tab for that duration.
