# context_schedule

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/threading/function-context_schedule/

**function** · [`ferroui-system`](/docs/0.5.0/api/ferroui-system/) · v0.5.0

```rust
fn context_schedule(context: std::sync::Arc<dyn SynchronizationContext>) -> std::sync::Arc<dyn Schedule>
```

`context` as a [`Schedule`](/docs/0.5.0/api/ferroui-system/task/trait-schedule/): its work is posted to the context (`post`, and `post_local` for
`Schedule::schedule_local`), and two adapters of the same context are the same schedule
(`Schedule::identity`). For code that still has a context, where a schedule is taken now.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/threading/synchronization_context.rs#L104)

> **Deprecated since 0.5.0.** implement `ferroui_system::task::Schedule` instead of `SynchronizationContext`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
