Expand description
The offload helper for running blocking work off the
orchestrator thread.
offload runs CPU-bound or blocking work off the
orchestrator thread.
The pipeline runs on a single !Send thread, and a stage’s perform must
keep yielding so an interrupt can preempt it. Heavy or blocking work run
inline would freeze the whole pipeline; offload is the one place work
crosses to another thread. That is why F and T are Send + 'static —
the bound is the offload boundary, not a requirement on the pipeline itself.
Functions§
- offload
- Run
foff the orchestrator thread andawaitits result.