Skip to content

docs: clarify ambient access, observation waits, and module identity - #29

Merged
miinhho merged 1 commit into
mainfrom
docs/execution-context-and-observation
Sep 15, 2026
Merged

miinhho merged 1 commit into
mainfrom
docs/execution-context-and-observation

Conversation

@miinhho

@miinhho miinhho commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Ambient context reads currently throw outside an execution, but the README's use() description can be read as returning undefined there. Clarify the active-execution requirement in README and JSDoc, and document peekState()?.context.signal for integrations that intentionally support either context.

Add a bounded observation example that races independently owned settlement promises without terminating processes, including timer/listener cleanup and the distinction between domain settlement and Job lifetime. Explain duplicate key-definition modules versus duplicate runner runtimes, preserve Symbol identity, and recommend required bindings for adapters whose defaults have side effects.

Validation: pnpm format && pnpm check && pnpm build && pnpm test && pnpm pack passed (131 tests). No runtime behavior or API changes.

@miinhho
miinhho merged commit dbf81a1 into main Sep 15, 2026
1 check passed
@miinhho
miinhho deleted the docs/execution-context-and-observation branch September 15, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant