# ISchedulerPeriodic

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/concurrency/trait-ischedulerperiodic/

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

```rust
trait ISchedulerPeriodic
```

Schedules periodic work (`ISchedulerPeriodic`).

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

## Members

- [`schedule_periodic`](#function-schedule_periodic)

<a id="function-schedule_periodic"></a>

### schedule_periodic

```rust
fn schedule_periodic(self: &Self, period: Duration, action: Box<dyn FnMut() -> ()>) -> Rc<dyn IDisposable>
```

Runs `action` every `period`, passing the state it returned the previous time
(`SchedulePeriodic<TState>(TState, TimeSpan, Func<TState, TState>)`; the closure keeps the
state).

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

## Availability

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