# IAsyncDisposable

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/trait-iasyncdisposable/

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

```rust
trait IAsyncDisposable
```

An object whose disposal ends later (`IAsyncDisposable`).

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

## Members

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

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

### dispose_async

```rust
fn dispose_async(self: &Self) -> Shared<Result<(), ObservableError>>
```

Starts the disposal and gives the task that ends with it; an error of the disposal is the
error of the task (`DisposeAsync`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/as_async_disposable.rs#L19)

## Availability

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