# spawn_local_on

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/task/function-spawn_local_on/

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

```rust
fn spawn_local_on<F>(future: F, schedule: std::sync::Arc<dyn Schedule>, first_poll: super::schedule::FirstPoll) -> super::join::JoinHandle<<F as >::Output>
where F: Future + 'static,
      <F as >::Output: 'static
```

Runs `future` as a task of the current thread whose polls run on `schedule`, and gives its
handle. Every wake, from any thread, queues one poll on the schedule; the first poll runs
inside this call or is queued as well (`first_poll`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/task/executor.rs#L454)

## Availability

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