Skip to content

fix: drop spawn(same_thread: true) unsupported by Crystal 1.21 - #59

Merged
stakach merged 1 commit into
mainfrom
fix/crystal-1.21-spawn-same-thread
Jul 22, 2026
Merged

stakach merged 1 commit into
mainfrom
fix/crystal-1.21-spawn-same-thread

Conversation

@chillfox

Copy link
Copy Markdown
Contributor

No description provided.

Crystal 1.21 makes Fiber::ExecutionContext::Parallel the default runtime, whose
scheduler raises on spawn(same_thread: true). This crashed every driver
compile (run_from), the response stream watchdog (api/driver) and graceful
shutdown (cli/server). Use a plain spawn in each case.
@github-actions github-actions Bot added the type: bug something isn't working label Jul 22, 2026
@stakach
stakach merged commit e607f38 into main Jul 22, 2026
7 of 10 checks passed
@stakach
stakach deleted the fix/crystal-1.21-spawn-same-thread branch July 22, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants