We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d7c3f commit 93c3d30Copy full SHA for 93c3d30
1 file changed
runtime-singletons.ts
@@ -65,7 +65,11 @@ let current: RuntimeSingletons = {
65
66
// ── Public API ────────────────────────────────────────────────────────
67
68
-/** Atomically replace all singletons. Test‑only — use __ naming convention. */
+/** Atomically replace all singletons.
69
+ * Called by spawn/renderer.ts at module evaluation time (production) and by
70
+ * tests via createTestHarness(). The __ prefix signals that callers should
71
+ * understand the lifecycle implications — see spawn/renderer.ts for the
72
+ * production registration pattern. */
73
export function __setSingletons(
74
s: RuntimeSingletons,
75
options?: { forceWriteLock?: boolean },
0 commit comments