set_synchronization_context
function · ferroui-system · v0.5.0
fn set_synchronization_context(context: Option<std::sync::Arc<dyn SynchronizationContext>>)
Sets the current context of the calling thread (SynchronizationContext.SetSynchronizationContext).
An adapter of it (context_schedule) becomes the schedule of the thread, through which other
threads wake its tasks and run its cancellations, and the current schedule of the thread, which
the tasks spawned here and the reactive libraries take; None clears all three.
Deprecated since 0.5.0. a dispatcher is the schedule of its thread and of its jobs; elsewhere use
ferroui_system::task::set_thread_scheduleandset_current_schedule
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.