Expand description
A task on a thread of its own, for capture streams that cannot move.
On Apple platforms a camera or screen stream holds AVFoundation and
ScreenCaptureKit objects, which are not Send. The same streams are Send
on Linux, so the problem only shows in macOS builds.
spawn runs such a future on its own thread in a current-thread runtime.
Only the frames it produces leave that thread. The runtime is built on the
calling thread, so a runtime or thread that does not start is an error the
caller sees.
Structs§
- Local
Task - A handle that stops its task when dropped.
Functions§
- spawn
- Runs
makeon a dedicated thread, in a current-thread runtime.