Skip to content

[parallel] Add spawn#3632

Closed
clabby wants to merge 8 commits into
mainfrom
cl/parallel-spawn
Closed

[parallel] Add spawn#3632
clabby wants to merge 8 commits into
mainfrom
cl/parallel-spawn

Conversation

@clabby
Copy link
Copy Markdown
Collaborator

@clabby clabby commented Apr 20, 2026

Overview

Adds a spawn function to the Strategy interface that accepts a closure containing a handle to the Strategy and returns a future containing the result. This interface allows composing rayon::spawn(|| pool.install(|| {/* ... */})) calls and awaiting a channel that contains the result, which prevents blocking the worker thread that kicked off the computation.

@clabby clabby self-assigned this Apr 20, 2026
@clabby clabby added this to Tracker Apr 20, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 20, 2026

Deploying monorepo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6825c67
Status: ✅  Deploy successful!
Preview URL: https://69028278.monorepo-eu0.pages.dev
Branch Preview URL: https://cl-parallel-spawn.monorepo-eu0.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 20, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
commonware-mcp 6825c67 Apr 20 2026, 08:24 PM

@clabby clabby moved this to In Progress in Tracker Apr 20, 2026
clabby added 5 commits April 20, 2026 15:39
Move spawn() from Strategy into a new Bridge: Strategy trait. This keeps
Strategy purely synchronous while Bridge provides the async-friendly
spawn + SpawnHandle API for callers in async contexts.
…validation

Spawn C::decode and map_partition_collect_vec onto the strategy's executor
so the async worker can yield during block reconstruction and shard
batch-validation. Use take_checked_shards to move shard data into the
closure without cloning.
@clabby clabby moved this from In Progress to Staged in Tracker May 11, 2026
@clabby clabby moved this from Staged to Blocked in Tracker May 11, 2026
@clabby clabby closed this May 12, 2026
@github-project-automation github-project-automation Bot moved this from Blocked to Done in Tracker May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant