Skip to content

docs: define intercept coroutine scope - #5

Merged
cayasde merged 1 commit into
mainfrom
agent/document-intercept-scope
Jul 30, 2026
Merged

docs: define intercept coroutine scope#5
cayasde merged 1 commit into
mainfrom
agent/document-intercept-scope

Conversation

@cayasde

@cayasde cayasde commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Documented that controlled interception supports yields in the captured coroutine.
  • Documented that child and independent coroutines remain outside the capture scope.
  • Removed the completed TODO checklist.

Why

The coroutine boundary is intentional: recursive capture of task.spawn descendants would require scheduler-wide context propagation and is not part of the library's contract.

Impact

Users can use task.wait() within the captured execution, while coordinating child tasks separately.

Validation

npm run check

npm test

@cayasde
cayasde marked this pull request as ready for review July 30, 2026 15:44
@cayasde
cayasde merged commit d6cbdf4 into main Jul 30, 2026
1 check passed
@cayasde
cayasde deleted the agent/document-intercept-scope branch July 30, 2026 15:44
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