# ScheduledAction

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/concurrency/type_alias-scheduledaction/

**type alias** · [`ferroui-reactive`](/docs/0.5.0/api/ferroui-reactive/) · v0.5.0

```rust
type ScheduledAction = Box<dyn FnOnce(&std::rc::Rc<dyn IScheduler>) -> std::rc::Rc<dyn IDisposable>>
```

The work a scheduler runs: it receives the scheduler it runs on (which the work may schedule
more work on, now or later) and returns the disposable that cancels what it started
(`Func<IScheduler, TState, IDisposable>`; the state of upstream is what the closure captures).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/concurrency/scheduler.rs#L20)

## Availability

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