# schedule_recurring_action_with

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/kernel/function-schedule_recurring_action_with/

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

```rust
fn schedule_recurring_action_with(scheduler: &std::rc::Rc<dyn IScheduler>, interval: impl Fn() -> std::time::Duration + 'static, action: impl Fn() -> () + 'static) -> std::rc::Rc<dyn IDisposable>
```

Runs `action` after each interval that `interval` gives, on `scheduler`, until the result is
disposed (`ScheduleRecurringAction(IScheduler, Func<TimeSpan>, Action)`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/kernel/internal_ex.rs#L50)

## Availability

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