From 163a1680e690a1fc2e21cf6d3dfdf7403e913b11 Mon Sep 17 00:00:00 2001 From: cayasde Date: Thu, 30 Jul 2026 11:42:08 -0400 Subject: [PATCH] docs: define intercept coroutine scope --- README.md | 4 ++++ TODO.md | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 TODO.md diff --git a/README.md b/README.md index 53e5c9e..6b30b8b 100644 --- a/README.md +++ b/README.md @@ -253,6 +253,10 @@ resumes only its own callback. `capture`, `respond`, and `release` may yield while waiting for the controlled callback or released original method to continue. The test runner must support yielding tests when the code under test does. + +Only the coroutine passed to `capture` is controlled. Calls made from child or +independent coroutines, such as ones created with `task.spawn`, are outside the +capture scope and must be coordinated by the test separately. Resolve every captured call before restoring its intercept. ```luau diff --git a/TODO.md b/TODO.md deleted file mode 100644 index fcf99fe..0000000 --- a/TODO.md +++ /dev/null @@ -1,9 +0,0 @@ -# Remaining Work - -The public API listed in `PLAN.md` exists. This checklist tracks the work -needed to make its behavior, safety, and documentation match the plan. - -## Controlled interception - -- [ ] Support calls originating from concurrent coroutines and verify that a - response or release resumes only its own coroutine.