# current_synchronization_context

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

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

```rust
fn current_synchronization_context() -> Option<std::sync::Arc<dyn SynchronizationContext>>
```

The current context of the calling thread (`SynchronizationContext.Current`): the one set with
[`set_synchronization_context`](/docs/0.5.0/api/ferroui-system/threading/function-set_synchronization_context/).

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

> **Deprecated since 0.5.0.** use `ferroui_system::task::current_schedule()`, the schedule of the running work (a dispatcher job)

## Availability

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