pub type StdSchedulerRef = Arc<StdScheduler>;Expand description
Shared handle to a StdScheduler.
Mirrors cranpose_core::SchedulerRef: native code wakes the runtime
from other threads, so the handle needs to be an atomically
reference-counted Arc. On wasm StdScheduler keeps its frame waker in a
RefCell because the host is single-threaded, so the type is not
Send + Sync there and an Rc handle is used instead of paying for
synchronisation the target has no use for.
Aliased Typeยง
pub struct StdSchedulerRef { /* private fields */ }