@rotorsoft/act 1.33.11 → 1.33.12

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.
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  sleep,
41
41
  store,
42
42
  validate
43
- } from "./chunk-F4F7CYBN.js";
43
+ } from "./chunk-YZ2NKMVS.js";
44
44
  import {
45
45
  ActorSchema,
46
46
  CausationEventSchema,
@@ -70,7 +70,7 @@ import {
70
70
  pii_fields,
71
71
  pii_schemas,
72
72
  sensitive
73
- } from "./chunk-2FOO4S2J.js";
73
+ } from "./chunk-URF33KO3.js";
74
74
 
75
75
  // src/signals.ts
76
76
  process.once("SIGINT", async (arg) => {
@@ -3199,9 +3199,10 @@ var Act = class {
3199
3199
  }
3200
3200
  _shutdown_promise;
3201
3201
  /**
3202
- * Per-instance teardown: stops scheduling, gives the cycles in flight up
3203
- * to `graceMs` to reach their `ack` (an abandoned handler holds its lease
3204
- * until it expires), then removes listeners and the notify subscription.
3202
+ * Per-instance teardown: stops scheduling, removes the notify
3203
+ * subscription, gives the cycles in flight up to `graceMs` to reach their
3204
+ * `ack` (an abandoned handler holds its lease until it expires), then
3205
+ * hands back the correlation lease and removes listeners.
3205
3206
  * The budget is a ceiling, not a delay.
3206
3207
  *
3207
3208
  * Idempotent: repeated calls return the same promise, with the first
@@ -3885,10 +3886,8 @@ var Act = class {
3885
3886
  * A local change that frees reaction work (a commit, `reset()`,
3886
3887
  * `unblock()`, `restore()`) schedules this on its own unless the app
3887
3888
  * sets `autoSettle: false`. Call it at startup, to run what was pending
3888
- * before a restart, or with options for the next pass. A pass already
3889
- * scheduled is never put off: calls before it runs join it (a shorter
3890
- * `debounceMs` brings it forward), and a call during a running cycle
3891
- * queues one more pass after it. Runs correlate→drain in a loop until a pass makes no
3889
+ * before a restart, or with options for the next pass; the scheduling
3890
+ * rule is in the event-sourcing docs (§ settle). Runs correlate→drain in a loop until a pass makes no
3892
3891
  * progress — no new subscriptions, no events read, no streams leased —
3893
3892
  * then emits the `"settled"` lifecycle event, so one call fully catches
3894
3893
  * up paginated streams without forcing callers to loop.