From c1fc8630475e7ca5466515d595597460d8d0c66e Mon Sep 17 00:00:00 2001 From: Mika Kuns Date: Wed, 20 May 2026 16:45:47 +0200 Subject: [PATCH] docs(db): mark waiterCount as @internal test helper Final review flagged that waiterCount looks like a public API but is only called from the rename-watch flake fix test. The behavior is fine to keep public (in-memory, safe), but the docstring now matches the intent so future API-surface scans don't load-bear on it. Co-Authored-By: Claude Opus 4.7 (1M context) --- node/src/db.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/node/src/db.ts b/node/src/db.ts index b51cbab..0dbe158 100644 --- a/node/src/db.ts +++ b/node/src/db.ts @@ -294,6 +294,7 @@ export class MailboxStore { this.waiters.delete(oldName); } + /** @internal Test helper to wait for a long-poll waiter to register. Not part of the public contract. */ waiterCount(name: string): number { return this.waiters.get(name)?.size ?? 0; }