Skip to content

Docs: describe Stop and the run thread as the code implements them - #34

Merged
baijum merged 1 commit into
mainfrom
docs/stop-abandon-wording
Sep 13, 2026
Merged

baijum merged 1 commit into
mainfrom
docs/stop-abandon-wording

Conversation

@baijum

@baijum baijum commented Sep 13, 2026

Copy link
Copy Markdown
Member

Docs-only. Salvaged from an uncommitted draft left in the PR #22 worktree, plus the same correction applied to the sentences around it.

docs/architecture.md and AGENTS.md still said the Scheme run executes on Dispatchers.IO and that a run abandoned by Stop keeps running there. Since #11's fix, SchemeRunner runs each program on its own single-thread daemon executor precisely so a runaway cannot occupy the shared IO pool — the KDoc on EditorViewModel.stopRun() and SchemeRunner.runExecutor already describe this.

Changes:

No code changes. #24 should update this paragraph again when the isolated-process runner lands.

🤖 Generated with Claude Code

`docs/architecture.md` and AGENTS.md still said the Scheme run executes on
`Dispatchers.IO` and that an abandoned run keeps running there. Since
issue #11's fix, `SchemeRunner` runs each program on its own single-thread
daemon executor precisely so a runaway abandoned by Stop cannot occupy the
shared IO pool; the KDoc on `EditorViewModel.stopRun()` and `SchemeRunner`
already say so. Bring the diagram, the run-flow step and the Stop paragraph
in line, spell out the cost (the thread and a core stay busy until the
program ends), and point at #24 for the real fix.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Baiju Muthukadan <baiju.m.mail@gmail.com>
@baijum
baijum merged commit ae9a8e7 into main Sep 13, 2026
3 checks passed
@baijum
baijum deleted the docs/stop-abandon-wording branch September 13, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant