# ImmediateScheduler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/concurrency/struct-immediatescheduler/

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

```rust
struct ImmediateScheduler
```

Runs work at once on the current thread (`ImmediateScheduler`). Delayed work blocks the thread
for the delay. Work that the running work schedules on the scheduler it receives runs after it,
in order (the trampoline of `AsyncLockScheduler`), so recursion does not grow the stack.

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

## Members

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

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

### instance

```rust
fn instance() -> Rc<dyn IScheduler>
```

The scheduler of the thread (`ImmediateScheduler.Instance`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`IScheduler`](/docs/0.5.0/api/ferroui-reactive/concurrency/trait-ischeduler/)

## Availability

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