# SchedulerOperation

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

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

```rust
struct SchedulerOperation
```

An operation that an asynchronous body awaits to run its continuation on a scheduler
(`SchedulerOperation`), made by `yield_` and `sleep` of
`SchedulerExt`. Awaiting it (`.await`, through its
`get_awaiter`) schedules the rest of the body on the scheduler, which
resumes it there; the operation ends with the error `Canceled` when its token is cancelled.
Nothing is scheduled until it is awaited.

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

## Members

- [`configure_await`](#function-configure_await)
- [`get_awaiter`](#function-get_awaiter)

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

### configure_await

```rust
fn configure_await(self: &Self, continue_on_captured_context: bool) -> SchedulerOperation
```

The operation, whose continuation is posted to the synchronization context of the awaiting
code when `continue_on_captured_context` is true (`ConfigureAwait(bool)`; false by
default): the context that is current when the continuation is given, if there is one.

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

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

### get_awaiter

```rust
fn get_awaiter(self: &Self) -> SchedulerOperationAwaiter
```

The awaiter of the operation (`GetAwaiter`), which `.await` uses; each awaiter schedules the
continuation once.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `IntoFuture`

## Availability

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