osra 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
- /** Per-connection teardown registry. Revivables register cleanup for state
2
- * tied to a connection (pending RPC settlements, port routing, caches);
3
- * the connection layer runs it on protocol close or unregisterSignal abort.
4
- * Registering against an already-torn-down scope runs the callback
5
- * immediately so late registrations fail fast instead of leaking. */
6
1
  export declare const onTeardown: (scope: WeakKey, fn: () => void) => (() => void);
2
+ /** Whether a scope's teardown has already run. Callers use this to REFUSE work rather than start it:
3
+ * `onTeardown` against a dead scope runs the callback immediately, which is a footgun inside an
4
+ * initializer, and anything registered afterwards is state no teardown will ever visit again. */
5
+ export declare const isTornDown: (scope: WeakKey) => boolean;
7
6
  export declare const runTeardown: (scope: WeakKey) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osra",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Easy communication between workers",
5
5
  "homepage": "https://github.com/Banou26/osra#readme",
6
6
  "bugs": {