# BuildTreeScheduler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/struct-buildtreescheduler/

**struct** · [`ferroui-controls-repeater`](/docs/0.5.0/api/ferroui-controls-repeater/) · v0.5.0

```rust
struct BuildTreeScheduler
```

Schedules phased binding work against the framework's rendering clock and
yields after the same 40 ms work budget as the source implementation.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/build_tree_scheduler.rs#L34)

## Members

- [`register_work`](#function-register_work)
- [`should_yield`](#function-should_yield)
- [`pending_work_count`](#function-pending_work_count)
- [`budget_milliseconds`](#function-budget_milliseconds)
- [`set_budget_milliseconds`](#function-set_budget_milliseconds)

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

### register_work

```rust
fn register_work(priority: i32, callback: impl FnOnce() -> () + 'static) -> Rc<dyn IDisposable>
```

Registers work for a rendering frame. Disposing the returned handle
cancels it until invocation starts, including from another callback in
the same frame. Dropping the handle does not cancel the work.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/build_tree_scheduler.rs#L39)

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

### should_yield

```rust
fn should_yield() -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/build_tree_scheduler.rs#L83)

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

### pending_work_count

```rust
fn pending_work_count() -> usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/build_tree_scheduler.rs#L92)

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

### budget_milliseconds

```rust
fn budget_milliseconds() -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/build_tree_scheduler.rs#L95)

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

### set_budget_milliseconds

```rust
fn set_budget_milliseconds(value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/build_tree_scheduler.rs#L98)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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