SynchronizationContext
trait · ferroui-system · v0.5.0
trait SynchronizationContext: Send + Sync
Where posted work runs (System.Threading.SynchronizationContext).
The base class of .NET posts to the thread pool and sends on the calling thread; here every implementation says where its work runs. An implementation is shared between threads, as the contexts of .NET are.
Deprecated since 0.5.0. use a
ferroui_system::task::Schedule: the dispatcher'stask_schedule(priority),task::current_schedule()andSchedule::schedule_local
Members
post
fn post(self: &Self, work: Box<dyn FnOnce() -> () + Send>)
Queues work to run on the context, from any thread, without waiting for it (Post).
Deprecated since 0.5.0. use a
ferroui_system::task::Schedule: the dispatcher'stask_schedule(priority),task::current_schedule()andSchedule::schedule_local
send
fn send(self: &Self, work: Box<dyn FnOnce() -> () + Send>)
Runs work on the context, from any thread, and waits for it (Send).
Deprecated since 0.5.0. use a
ferroui_system::task::Schedule: the dispatcher'stask_schedule(priority),task::current_schedule()andSchedule::schedule_local
post_local
fn post_local(self: &Self, work: Box<dyn FnOnce() -> ()>)
Queues work, which is not Send, to run on the context (Post from the thread of the
context). Implementations may panic when it is called from another thread.
Deprecated since 0.5.0. use a
ferroui_system::task::Schedule: the dispatcher'stask_schedule(priority),task::current_schedule()andSchedule::schedule_local
send_local
fn send_local(self: &Self, work: Box<dyn FnOnce() -> ()>)
Runs work, which is not Send, on the context and waits for it (Send from the thread of
the context). Implementations may panic when it is called from another thread.
Deprecated since 0.5.0. use a
ferroui_system::task::Schedule: the dispatcher'stask_schedule(priority),task::current_schedule()andSchedule::schedule_local
operation_started
fn operation_started(self: &Self)
Tells the context that an operation has started (OperationStarted); nothing by default.
Deprecated since 0.5.0. use a
ferroui_system::task::Schedule: the dispatcher'stask_schedule(priority),task::current_schedule()andSchedule::schedule_local
operation_completed
fn operation_completed(self: &Self)
Tells the context that an operation has completed (OperationCompleted); nothing by
default.
Deprecated since 0.5.0. use a
ferroui_system::task::Schedule: the dispatcher'stask_schedule(priority),task::current_schedule()andSchedule::schedule_local
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.