# Observable

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/linq/struct-observable/

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

```rust
struct Observable
```

The static members of `Observable`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L14)

## Members

- [`create`](#function-create)
- [`create_with_action`](#function-create_with_action)
- [`empty`](#function-empty)
- [`empty_with_witness`](#function-empty_with_witness)
- [`empty_on`](#function-empty_on)
- [`empty_on_with_witness`](#function-empty_on_with_witness)
- [`never`](#function-never)
- [`never_with_witness`](#function-never_with_witness)
- [`return_`](#function-return_)
- [`return_on`](#function-return_on)
- [`throw`](#function-throw)
- [`throw_with_witness`](#function-throw_with_witness)
- [`throw_on`](#function-throw_on)
- [`throw_on_with_witness`](#function-throw_on_with_witness)
- [`create_iterator`](#function-create_iterator)
- [`try_create_iterator`](#function-try_create_iterator)
- [`create_iterator_void`](#function-create_iterator_void)
- [`try_create_iterator_void`](#function-try_create_iterator_void)
- [`start_async`](#function-start_async)
- [`start_async_on`](#function-start_async_on)
- [`start_async_with_token`](#function-start_async_with_token)
- [`start_async_with_token_on`](#function-start_async_with_token_on)
- [`from_async`](#function-from_async)
- [`from_async_on`](#function-from_async_on)
- [`from_async_with_token`](#function-from_async_with_token)
- [`from_async_with_token_on`](#function-from_async_with_token_on)
- [`to_async`](#function-to_async)
- [`to_async_on`](#function-to_async_on)
- [`try_to_async`](#function-try_to_async)
- [`try_to_async_on`](#function-try_to_async_on)
- [`create_async`](#function-create_async)
- [`create_async_with_token`](#function-create_async_with_token)
- [`create_async_with_disposable`](#function-create_async_with_disposable)
- [`create_async_with_disposable_with_token`](#function-create_async_with_disposable_with_token)
- [`create_async_with_action`](#function-create_async_with_action)
- [`create_async_with_action_with_token`](#function-create_async_with_action_with_token)
- [`defer_async`](#function-defer_async)
- [`defer_async_with_token`](#function-defer_async_with_token)
- [`using_async`](#function-using_async)
- [`if_`](#function-if_)
- [`if_then`](#function-if_then)
- [`if_then_on`](#function-if_then_on)
- [`try_if`](#function-try_if)
- [`try_if_then`](#function-try_if_then)
- [`try_if_then_on`](#function-try_if_then_on)
- [`case_with_default`](#function-case_with_default)
- [`case`](#function-case)
- [`case_on`](#function-case_on)
- [`try_case_with_default`](#function-try_case_with_default)
- [`try_case`](#function-try_case)
- [`try_case_on`](#function-try_case_on)
- [`for_`](#function-for_)
- [`try_for`](#function-try_for)
- [`while_`](#function-while_)
- [`try_while`](#function-try_while)
- [`when`](#function-when)
- [`try_when`](#function-try_when)
- [`from_event`](#function-from_event)
- [`from_event_on`](#function-from_event_on)
- [`from_event_conversion`](#function-from_event_conversion)
- [`from_event_conversion_on`](#function-from_event_conversion_on)
- [`try_from_event_conversion`](#function-try_from_event_conversion)
- [`try_from_event_conversion_on`](#function-try_from_event_conversion_on)
- [`from_event_action`](#function-from_event_action)
- [`from_event_action_on`](#function-from_event_action_on)
- [`from_event_pattern`](#function-from_event_pattern)
- [`from_event_pattern_on`](#function-from_event_pattern_on)
- [`from_event_pattern_conversion`](#function-from_event_pattern_conversion)
- [`from_event_pattern_conversion_on`](#function-from_event_pattern_conversion_on)
- [`try_from_event_pattern_conversion`](#function-try_from_event_pattern_conversion)
- [`try_from_event_pattern_conversion_on`](#function-try_from_event_pattern_conversion_on)
- [`fork_join_all`](#function-fork_join_all)
- [`zip_all`](#function-zip_all)
- [`zip_all_with`](#function-zip_all_with)
- [`try_zip_all_with`](#function-try_zip_all_with)
- [`combine_latest_all`](#function-combine_latest_all)
- [`combine_latest_all_with`](#function-combine_latest_all_with)
- [`try_combine_latest_all_with`](#function-try_combine_latest_all_with)
- [`merge_all`](#function-merge_all)
- [`merge_all_on`](#function-merge_all_on)
- [`merge_all_max`](#function-merge_all_max)
- [`merge_all_max_on`](#function-merge_all_max_on)
- [`concat_all`](#function-concat_all)
- [`amb_all`](#function-amb_all)
- [`defer`](#function-defer)
- [`try_defer`](#function-try_defer)
- [`range`](#function-range)
- [`range_on`](#function-range_on)
- [`repeat`](#function-repeat)
- [`repeat_on`](#function-repeat_on)
- [`repeat_count`](#function-repeat_count)
- [`repeat_count_on`](#function-repeat_count_on)
- [`generate`](#function-generate)
- [`generate_on`](#function-generate_on)
- [`try_generate`](#function-try_generate)
- [`try_generate_on`](#function-try_generate_on)
- [`generate_after`](#function-generate_after)
- [`generate_after_on`](#function-generate_after_on)
- [`try_generate_after`](#function-try_generate_after)
- [`try_generate_after_on`](#function-try_generate_after_on)
- [`generate_at`](#function-generate_at)
- [`generate_at_on`](#function-generate_at_on)
- [`try_generate_at`](#function-try_generate_at)
- [`try_generate_at_on`](#function-try_generate_at_on)
- [`using`](#function-using)
- [`try_using`](#function-try_using)
- [`start`](#function-start)
- [`start_on`](#function-start_on)
- [`try_start`](#function-try_start)
- [`try_start_on`](#function-try_start_on)
- [`start_action`](#function-start_action)
- [`start_action_on`](#function-start_action_on)
- [`try_start_action`](#function-try_start_action)
- [`try_start_action_on`](#function-try_start_action_on)
- [`to_observable`](#function-to_observable)
- [`to_observable_on`](#function-to_observable_on)
- [`try_to_observable`](#function-try_to_observable)
- [`try_to_observable_on`](#function-try_to_observable_on)
- [`subscribe_enumerable`](#function-subscribe_enumerable)
- [`subscribe_enumerable_on`](#function-subscribe_enumerable_on)
- [`timer`](#function-timer)
- [`timer_at`](#function-timer_at)
- [`timer_periodic`](#function-timer_periodic)
- [`timer_at_periodic`](#function-timer_at_periodic)
- [`timer_on`](#function-timer_on)
- [`timer_at_on`](#function-timer_at_on)
- [`timer_periodic_on`](#function-timer_periodic_on)
- [`timer_at_periodic_on`](#function-timer_at_periodic_on)
- [`interval`](#function-interval)
- [`interval_on`](#function-interval_on)
- [`catch_all`](#function-catch_all)
- [`try_catch_all`](#function-try_catch_all)
- [`on_error_resume_next_all`](#function-on_error_resume_next_all)
- [`try_on_error_resume_next_all`](#function-try_on_error_resume_next_all)

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

### create

```rust
fn create<T: 'static>(subscribe: impl Fn(Rc<dyn IObserver<T>>) -> Rc<dyn IDisposable> + 'static) -> Rc<dyn IObservable<T>>
```

A sequence whose subscription is `subscribe`, which returns the disposable that ends it
(`Create<TResult>(Func<IObserver<TResult>, IDisposable>)`). The observer it receives ignores
everything after a terminal notification, and a terminal notification disposes the
subscription.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L199)

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

### create_with_action

```rust
fn create_with_action<T: 'static, A: FnOnce() -> () + 'static>(subscribe: impl Fn(Rc<dyn IObserver<T>>) -> A + 'static) -> Rc<dyn IObservable<T>>
```

A sequence whose subscription is `subscribe`, which returns the action that ends it
(`Create<TResult>(Func<IObserver<TResult>, Action>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L205)

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

### empty

```rust
fn empty<T: 'static>() -> Rc<dyn IObservable<T>>
```

A sequence that ends at once (`Empty<TResult>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L212)

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

### empty_with_witness

```rust
fn empty_with_witness<T: 'static>(_witness: T) -> Rc<dyn IObservable<T>>
```

`empty`, with a value that only names the type of the sequence
(`Empty<TResult>(TResult witness)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L218)

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

### empty_on

```rust
fn empty_on<T: 'static>(scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

A sequence that ends on `scheduler` (`Empty<TResult>(IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L223)

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

### empty_on_with_witness

```rust
fn empty_on_with_witness<T: 'static>(scheduler: Rc<dyn IScheduler>, _witness: T) -> Rc<dyn IObservable<T>>
```

`empty_on`, with a value that only names the type of the sequence
(`Empty<TResult>(IScheduler, TResult witness)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L229)

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

### never

```rust
fn never<T: 'static>() -> Rc<dyn IObservable<T>>
```

A sequence that never notifies (`Never<TResult>()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L234)

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

### never_with_witness

```rust
fn never_with_witness<T: 'static>(_witness: T) -> Rc<dyn IObservable<T>>
```

`never`, with a value that only names the type of the sequence
(`Never<TResult>(TResult witness)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L240)

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

### return_

```rust
fn return_<T: Clone + 'static>(value: T) -> Rc<dyn IObservable<T>>
```

A sequence of one value, on the scheduler of constant-time operations, the immediate one
(`Return<TResult>(TResult)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L246)

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

### return_on

```rust
fn return_on<T: Clone + 'static>(value: T, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

A sequence of one value, on `scheduler` (`Return<TResult>(TResult, IScheduler)`); on the
immediate scheduler the value and the end are notified at once.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L252)

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

### throw

```rust
fn throw<T: 'static>(error: ObservableError) -> Rc<dyn IObservable<T>>
```

A sequence that ends with `error`, on the scheduler of constant-time operations, the
immediate one (`Throw<TResult>(Exception)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L261)

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

### throw_with_witness

```rust
fn throw_with_witness<T: 'static>(error: ObservableError, _witness: T) -> Rc<dyn IObservable<T>>
```

`throw`, with a value that only names the type of the sequence
(`Throw<TResult>(Exception, TResult witness)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L267)

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

### throw_on

```rust
fn throw_on<T: 'static>(error: ObservableError, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

A sequence that ends with `error`, on `scheduler` (`Throw<TResult>(Exception, IScheduler)`);
on the immediate scheduler the error is notified at once.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L273)

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

### throw_on_with_witness

```rust
fn throw_on_with_witness<T: 'static>(error: ObservableError, scheduler: Rc<dyn IScheduler>, _witness: T) -> Rc<dyn IObservable<T>>
```

`throw_on`, with a value that only names the type of the sequence
(`Throw<TResult>(Exception, IScheduler, TResult witness)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/creation.rs#L282)

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

### create_iterator

```rust
fn create_iterator<R: 'static, X: 'static, I>(iterator_method: impl Fn(Rc<dyn IObserver<R>>) -> I + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Rc<dyn IObservable<X>>> + 'static,
      <I as >::IntoIter: 'static
```

The sequence of the values that `iterator_method` sends to the observer it is given; the
sequences it yields are subscribed to one after another, and only their end (an error, or
the completion of the last one) is notified
(`ObservableEx.Create<TResult>(Func<IObserver<TResult>, IEnumerable<IObservable<object>>>)`).
The next sequence is asked of the iterator only when the previous one completes.

Deviation (DEVIATIONS.md, Reactive): upstream's yielded sequences are `IObservable<object>`;
the port has no common object type, so they are sequences of one type `X`, a parameter of
the method (`()` when the values do not matter).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_iterator.rs#L100)

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

### try_create_iterator

```rust
fn try_create_iterator<R: 'static, X: 'static, I>(iterator_method: impl Fn(Rc<dyn IObserver<R>>) -> Result<I, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Result<Rc<dyn IObservable<X>>, ObservableError>> + 'static,
      <I as >::IntoIter: 'static
```

`create_iterator` with an iterator method that may fail: an `Err`
returned by `iterator_method` is the method throwing, an `Err` item is the iterator
throwing; either ends the sequence with that error
(`ObservableEx.Create<TResult>(Func<IObserver<TResult>, IEnumerable<IObservable<object>>>)`).

Deviation (DEVIATIONS.md, Reactive): the yielded sequences are of one type `X`, where
upstream's are `IObservable<object>`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_iterator.rs#L117)

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

### create_iterator_void

```rust
fn create_iterator_void<X: 'static, I>(iterator_method: impl Fn() -> I + 'static) -> Rc<dyn IObservable<()>>
where I: IntoIterator<Item = Rc<dyn IObservable<X>>> + 'static,
      <I as >::IntoIter: 'static
```

The end of the sequences that `iterator_method` yields, subscribed to one after another
(`ObservableEx.Create(Func<IEnumerable<IObservable<object>>>)`). As upstream's, the
sequence notifies no value (its observer is a `TerminalOnlyObserver<Unit>`), only the error
of a sequence or the completion of the last one. The next sequence is asked of the
iterator only when the previous one completes.

Deviation (DEVIATIONS.md, Reactive): the yielded sequences are of one type `X`, where
upstream's are `IObservable<object>`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_iterator.rs#L135)

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

### try_create_iterator_void

```rust
fn try_create_iterator_void<X: 'static, I>(iterator_method: impl Fn() -> Result<I, ObservableError> + 'static) -> Rc<dyn IObservable<()>>
where I: IntoIterator<Item = Result<Rc<dyn IObservable<X>>, ObservableError>> + 'static,
      <I as >::IntoIter: 'static
```

`create_iterator_void` with an iterator method that may
fail: an `Err` returned by `iterator_method` is the method throwing, an `Err` item is the
iterator throwing; either ends the sequence with that error
(`ObservableEx.Create(Func<IEnumerable<IObservable<object>>>)`).

Deviation (DEVIATIONS.md, Reactive): the yielded sequences are of one type `X`, where
upstream's are `IObservable<object>`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_iterator.rs#L152)

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

### start_async

```rust
fn start_async<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl FnOnce() -> Fut) -> Rc<dyn IObservable<T>>
```

Runs the future the function gives at once, as a task, and gives a sequence of its outcome:
a hot sequence, shared by its subscriptions (`StartAsync(Func<Task<TResult>>)`,
`StartAsync(Func<Task>)` for `T = ()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L283)

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

### start_async_on

```rust
fn start_async_on<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl FnOnce() -> Fut, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`start_async` with the notifications on `scheduler`
(`StartAsync(Func<Task<TResult>>, TaskObservationOptions)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L291)

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

### start_async_with_token

```rust
fn start_async_with_token<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl FnOnce(CancellationToken) -> Fut) -> Rc<dyn IObservable<T>>
```

`start_async` with a cancellation token, which disposing a subscription
cancels (`StartAsync(Func<CancellationToken, Task<TResult>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L300)

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

### start_async_with_token_on

```rust
fn start_async_with_token_on<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl FnOnce(CancellationToken) -> Fut, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`start_async_with_token` with the notifications on
`scheduler` (`StartAsync(Func<CancellationToken, Task<TResult>>, TaskObservationOptions)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L308)

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

### from_async

```rust
fn from_async<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl Fn() -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

Runs the future the function gives for each subscription, as a task, and gives a sequence
of its outcome (`FromAsync(Func<Task<TResult>>)`, `FromAsync(Func<Task>)` for `T = ()`):
`Defer` of `StartAsync`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L318)

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

### from_async_on

```rust
fn from_async_on<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl Fn() -> Fut + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`from_async` with the notifications on `scheduler`
(`FromAsync(Func<Task<TResult>>, TaskObservationOptions)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L326)

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

### from_async_with_token

```rust
fn from_async_with_token<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl Fn(CancellationToken) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

`from_async` with a cancellation token, which disposing the
subscription cancels (`FromAsync(Func<CancellationToken, Task<TResult>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L335)

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

### from_async_with_token_on

```rust
fn from_async_with_token_on<T: Clone + 'static, Fut: Future<Output = Result<T, ObservableError>> + 'static>(function_async: impl Fn(CancellationToken) -> Fut + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`from_async_with_token` with the notifications on
`scheduler` (`FromAsync(Func<CancellationToken, Task<TResult>>, TaskObservationOptions)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/task_observable.rs#L343)

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

### to_async

```rust
fn to_async<Args, R, F: ToAsyncFunction<Args, R>>(function: F) -> <F as >::Async
```

The asynchronous form of `function` (a closure of 0 to 16 arguments): each call runs it on
the scheduler of asynchronous conversions and gives a sequence of its result, kept for every
observer (`ToAsync(Func<.., TResult>)`, `ToAsync(Action<..>)` for a closure returning `()`).

The argument types of the closure must be written out (`|a: i32, b: i32| a + b`), since they
choose the arity.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_async.rs#L107)

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

### to_async_on

```rust
fn to_async_on<Args, R, F: ToAsyncFunction<Args, R>>(function: F, scheduler: Rc<dyn IScheduler>) -> <F as >::Async
```

`to_async` running the function on `scheduler`
(`ToAsync(Func<.., TResult>, IScheduler)`, `ToAsync(Action<..>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_async.rs#L113)

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

### try_to_async

```rust
fn try_to_async<Args, R, F: TryToAsyncFunction<Args, R>>(function: F) -> <F as >::Async
```

`to_async` of a function that may fail: the sequence of a call that fails
ends with its error (`ToAsync` of a function that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_async.rs#L119)

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

### try_to_async_on

```rust
fn try_to_async_on<Args, R, F: TryToAsyncFunction<Args, R>>(function: F, scheduler: Rc<dyn IScheduler>) -> <F as >::Async
```

`try_to_async` running the function on `scheduler`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_async.rs#L124)

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

### create_async

```rust
fn create_async<T: 'static, Fut: Future<Output = Result<(), ObservableError>> + 'static>(subscribe_async: impl Fn(Rc<dyn IObserver<T>>) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

A sequence whose subscription is an asynchronous function: the future it returns runs as a
task (the `flatten()` of a `Shared` is used as it is), and the sequence ends when the task
ends, with its error when it fails or is canceled
(`Create<TResult>(Func<IObserver<TResult>, Task>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_async.rs#L193)

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

### create_async_with_token

```rust
fn create_async_with_token<T: 'static, Fut: Future<Output = Result<(), ObservableError>> + 'static>(subscribe_async: impl Fn(Rc<dyn IObserver<T>>, CancellationToken) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

`create_async` with a token that disposing the subscription cancels
(`Create<TResult>(Func<IObserver<TResult>, CancellationToken, Task>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_async.rs#L201)

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

### create_async_with_disposable

```rust
fn create_async_with_disposable<T: 'static, Fut: Future<Output = Result<Rc<dyn IDisposable>, ObservableError>> + 'static>(subscribe_async: impl Fn(Rc<dyn IObserver<T>>) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

A sequence whose subscription is an asynchronous function whose task gives the disposable
that ends the subscription; disposing the subscription before the task ends disposes the
disposable as soon as it arrives. An error of the task is the error of the sequence; its end
does not end the sequence (`Create<TResult>(Func<IObserver<TResult>, Task<IDisposable>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_async.rs#L211)

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

### create_async_with_disposable_with_token

```rust
fn create_async_with_disposable_with_token<T: 'static, Fut: Future<Output = Result<Rc<dyn IDisposable>, ObservableError>> + 'static>(subscribe_async: impl Fn(Rc<dyn IObserver<T>>, CancellationToken) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

`create_async_with_disposable` with a token that
disposing the subscription cancels
(`Create<TResult>(Func<IObserver<TResult>, CancellationToken, Task<IDisposable>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_async.rs#L220)

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

### create_async_with_action

```rust
fn create_async_with_action<T: 'static, A: FnOnce() -> () + 'static, Fut: Future<Output = Result<A, ObservableError>> + 'static>(subscribe_async: impl Fn(Rc<dyn IObserver<T>>) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

A sequence whose subscription is an asynchronous function whose task gives the action that
ends the subscription; disposing the subscription before the task ends runs the action as
soon as it arrives. An error of the task is the error of the sequence; its end does not end
the sequence (`Create<TResult>(Func<IObserver<TResult>, Task<Action>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_async.rs#L230)

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

### create_async_with_action_with_token

```rust
fn create_async_with_action_with_token<T: 'static, A: FnOnce() -> () + 'static, Fut: Future<Output = Result<A, ObservableError>> + 'static>(subscribe_async: impl Fn(Rc<dyn IObserver<T>>, CancellationToken) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

`create_async_with_action` with a token that disposing
the subscription cancels (`Create<TResult>(Func<IObserver<TResult>, CancellationToken,
Task<Action>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/create_async.rs#L239)

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

### defer_async

```rust
fn defer_async<T: 'static, Fut: Future<Output = Result<Rc<dyn IObservable<T>>, ObservableError>> + 'static>(observable_factory_async: impl Fn() -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

Runs the future the factory gives for each subscription, as a task, and subscribes to the
sequence it gives; an error of the task is the error of the sequence
(`Defer<TResult>(Func<Task<IObservable<TResult>>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/defer_async.rs#L21)

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

### defer_async_with_token

```rust
fn defer_async_with_token<T: 'static, Fut: Future<Output = Result<Rc<dyn IObservable<T>>, ObservableError>> + 'static>(observable_factory_async: impl Fn(CancellationToken) -> Fut + 'static) -> Rc<dyn IObservable<T>>
```

`defer_async` with a token, which disposing the subscription cancels
(`DeferAsync<TResult>(Func<CancellationToken, Task<IObservable<TResult>>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/defer_async.rs#L29)

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

### using_async

```rust
fn using_async<T: 'static, R: IDisposable + ?Sized + 'static, FutR, FutO>(resource_factory_async: impl Fn(CancellationToken) -> FutR + 'static, observable_factory_async: impl Fn(Rc<R>, CancellationToken) -> FutO + 'static) -> Rc<dyn IObservable<T>>
where FutR: Future<Output = Result<Rc<R>, ObservableError>> + 'static,
      FutO: Future<Output = Result<Rc<dyn IObservable<T>>, ObservableError>> + 'static
```

A sequence that, for each subscription, runs the future of `resource_factory_async` as a
task, then the future `observable_factory_async` gives for the resource, and subscribes to
the sequence it gives; the resource is disposed when that subscription ends. Each factory
is given a token that disposing the subscription cancels
(`Using<TResult, TResource>(Func<CancellationToken, Task<TResource>>, Func<TResource,
CancellationToken, Task<IObservable<TResult>>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/using_async.rs#L21)

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

### if_

```rust
fn if_<T: 'static>(condition: impl Fn() -> bool + 'static, then_source: Rc<dyn IObservable<T>>, else_source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

The values of `then_source` when `condition` holds at the subscription, else those of
`else_source` (`If<TResult>(Func<bool>, IObservable<TResult>, IObservable<TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/if_.rs#L50)

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

### if_then

```rust
fn if_then<T: 'static>(condition: impl Fn() -> bool + 'static, then_source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

The values of `then_source` when `condition` holds at the subscription, else an empty
sequence (`If<TResult>(Func<bool>, IObservable<TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/if_.rs#L60)

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

### if_then_on

```rust
fn if_then_on<T: 'static>(condition: impl Fn() -> bool + 'static, then_source: Rc<dyn IObservable<T>>, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`if_then`, whose empty sequence ends on `scheduler`
(`If<TResult>(Func<bool>, IObservable<TResult>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/if_.rs#L66)

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

### try_if

```rust
fn try_if<T: 'static>(condition: impl Fn() -> Result<bool, ObservableError> + 'static, then_source: Rc<dyn IObservable<T>>, else_source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

`if_` with a condition that may fail; a failure ends the sequence with its error
(`If` with a condition that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/if_.rs#L76)

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

### try_if_then

```rust
fn try_if_then<T: 'static>(condition: impl Fn() -> Result<bool, ObservableError> + 'static, then_source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

`if_then` with a condition that may fail.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/if_.rs#L85)

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

### try_if_then_on

```rust
fn try_if_then_on<T: 'static>(condition: impl Fn() -> Result<bool, ObservableError> + 'static, then_source: Rc<dyn IObservable<T>>, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`if_then_on` with a condition that may fail.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/if_.rs#L93)

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

### case_with_default

```rust
fn case_with_default<K: Eq + Hash + 'static, T: 'static>(selector: impl Fn() -> K + 'static, sources: HashMap<K, Rc<dyn IObservable<T>>>, default_source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

The values of the sequence of `sources` whose key `selector` returns at the subscription, or
of `default_source` when none has the key
(`Case<TValue, TResult>(Func<TValue>, IDictionary<TValue, IObservable<TResult>>, IObservable<TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/case.rs#L53)

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

### case

```rust
fn case<K: Eq + Hash + 'static, T: 'static>(selector: impl Fn() -> K + 'static, sources: HashMap<K, Rc<dyn IObservable<T>>>) -> Rc<dyn IObservable<T>>
```

`case_with_default` whose default is an empty sequence
(`Case<TValue, TResult>(Func<TValue>, IDictionary<TValue, IObservable<TResult>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/case.rs#L63)

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

### case_on

```rust
fn case_on<K: Eq + Hash + 'static, T: 'static>(selector: impl Fn() -> K + 'static, sources: HashMap<K, Rc<dyn IObservable<T>>>, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`case_with_default` whose default is an empty sequence that ends
on `scheduler` (`Case<TValue, TResult>(Func<TValue>, IDictionary<TValue, IObservable<TResult>>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/case.rs#L72)

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

### try_case_with_default

```rust
fn try_case_with_default<K: Eq + Hash + 'static, T: 'static>(selector: impl Fn() -> Result<K, ObservableError> + 'static, sources: HashMap<K, Rc<dyn IObservable<T>>>, default_source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

`case_with_default` with a selector that may fail; a failure ends
the sequence with its error (`Case` with a selector that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/case.rs#L82)

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

### try_case

```rust
fn try_case<K: Eq + Hash + 'static, T: 'static>(selector: impl Fn() -> Result<K, ObservableError> + 'static, sources: HashMap<K, Rc<dyn IObservable<T>>>) -> Rc<dyn IObservable<T>>
```

`case` with a selector that may fail.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/case.rs#L91)

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

### try_case_on

```rust
fn try_case_on<K: Eq + Hash + 'static, T: 'static>(selector: impl Fn() -> Result<K, ObservableError> + 'static, sources: HashMap<K, Rc<dyn IObservable<T>>>, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`case_on` with a selector that may fail.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/case.rs#L99)

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

### for_

```rust
fn for_<S: 'static, R: 'static, I>(source: I, result_selector: impl Fn(S) -> Rc<dyn IObservable<R>> + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = S> + Clone + 'static,
      <I as >::IntoIter: 'static
```

The values of the sequences `result_selector` makes of the items of `source`, one sequence
after another (`For<TSource, TResult>(IEnumerable<TSource>, Func<TSource, IObservable<TResult>>)`).
Each subscription enumerates `source` anew.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/for_.rs#L31)

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

### try_for

```rust
fn try_for<S: 'static, R: 'static, I>(source: I, result_selector: impl Fn(S) -> Result<Rc<dyn IObservable<R>>, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Result<S, ObservableError>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

`for_` over items whose enumeration may fail (an item that is an error is a
`MoveNext` that throws) and with a selector that may fail; a failure ends the sequence with
its error.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/for_.rs#L46)

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

### while_

```rust
fn while_<T: 'static>(condition: impl Fn() -> bool + 'static, source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

The values of `source`, repeated for as long as `condition` holds when the previous
repetition has completed, and at the subscription (`While<TSource>(Func<bool>, IObservable<TSource>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/while_.rs#L29)

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

### try_while

```rust
fn try_while<T: 'static>(condition: impl Fn() -> Result<bool, ObservableError> + 'static, source: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

`while_` with a condition that may fail; a failure ends the sequence with its
error (`While` with a condition that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/while_.rs#L35)

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

### when

```rust
fn when<R: 'static, I>(plans: I) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Plan<R>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

The projections of `plans`, notified as the values of the sequences of each plan match up
(`When<TResult>(params Plan<TResult>[])`, `When<TResult>(IEnumerable<Plan<TResult>>)`). The
sequence completes when every plan has ended (when a sequence of a plan has completed and
its values are used up), and ends with the first error of a sequence. Each subscription
enumerates `plans` anew.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/joins.rs#L530)

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

### try_when

```rust
fn try_when<R: 'static, I>(plans: impl Fn() -> Result<I, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Result<Plan<R>, ObservableError>>,
      <I as >::IntoIter: 'static
```

`when` over plans whose enumeration may fail: `plans` starts an enumeration
(`GetEnumerator`, which fails with an `Err`), and each item is the next plan or the error of
the step (`MoveNext` that throws). A failure ends the sequence with its error, before any
subscription.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/joins.rs#L543)

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

### from_event

```rust
fn from_event<T: Clone + 'static, K: 'static>(add_handler: impl Fn(Rc<dyn Fn(T) -> ()>) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static) -> Rc<dyn IObservable<T>>
```

The arguments of the events of an event whose handlers take them
(`FromEvent<TEventArgs>(Action<Action<TEventArgs>>, Action<Action<TEventArgs>>)`):
`add_handler` adds a handler and returns its token, `remove_handler` removes the handler of a
token. The subscriptions share one handler, added at the first subscription and removed when
the last one is disposed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L170)

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

### from_event_on

```rust
fn from_event_on<T: Clone + 'static, K: 'static>(add_handler: impl Fn(Rc<dyn Fn(T) -> ()>) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`from_event`, which adds and removes the handler on `scheduler`
(`FromEvent<TEventArgs>(Action<Action<TEventArgs>>, Action<Action<TEventArgs>>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L179)

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

### from_event_conversion

```rust
fn from_event_conversion<D: 'static, T: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(T) -> ()>) -> D + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static) -> Rc<dyn IObservable<T>>
```

The arguments of the events of an event whose handlers are of the type `D`, which
`conversion` makes from the action that notifies the arguments
(`FromEvent<TDelegate, TEventArgs>(Func<Action<TEventArgs>, TDelegate>, Action<TDelegate>, Action<TDelegate>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L194)

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

### from_event_conversion_on

```rust
fn from_event_conversion_on<D: 'static, T: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(T) -> ()>) -> D + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`from_event_conversion` on `scheduler`
(`FromEvent<TDelegate, TEventArgs>(Func<Action<TEventArgs>, TDelegate>, Action<TDelegate>, Action<TDelegate>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L204)

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

### try_from_event_conversion

```rust
fn try_from_event_conversion<D: 'static, T: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(T) -> ()>) -> Result<D, ObservableError> + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static) -> Rc<dyn IObservable<T>>
```

`from_event_conversion` with a conversion that may fail; a
failure ends the subscription with its error (a conversion that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L219)

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

### try_from_event_conversion_on

```rust
fn try_from_event_conversion_on<D: 'static, T: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(T) -> ()>) -> Result<D, ObservableError> + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`try_from_event_conversion` on `scheduler`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L228)

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

### from_event_action

```rust
fn from_event_action<K: 'static>(add_handler: impl Fn(Rc<dyn Fn() -> ()>) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static) -> Rc<dyn IObservable<()>>
```

The events of an event whose handlers take no arguments, as `()`s
(`FromEvent(Action<Action>, Action<Action>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L239)

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

### from_event_action_on

```rust
fn from_event_action_on<K: 'static>(add_handler: impl Fn(Rc<dyn Fn() -> ()>) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<()>>
```

`from_event_action` on `scheduler`
(`FromEvent(Action<Action>, Action<Action>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event.rs#L248)

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

### from_event_pattern

```rust
fn from_event_pattern<S: Clone + 'static, A: Clone + 'static, K: 'static>(add_handler: impl Fn(Rc<dyn Fn(S, A) -> ()>) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static) -> Rc<dyn IObservable<EventPattern<S, A>>>
```

The events of an event whose handlers take a sender and arguments, as `EventPattern`s
(`FromEventPattern<TEventArgs>(Action<EventHandler<TEventArgs>>, Action<EventHandler<TEventArgs>>)`,
and `FromEventPattern(Action<EventHandler>, Action<EventHandler>)`): `add_handler` adds a
handler and returns its token, `remove_handler` removes the handler of a token. The
subscriptions share one handler, added at the first subscription and removed when the last
one is disposed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event_pattern.rs#L37)

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

### from_event_pattern_on

```rust
fn from_event_pattern_on<S: Clone + 'static, A: Clone + 'static, K: 'static>(add_handler: impl Fn(Rc<dyn Fn(S, A) -> ()>) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<EventPattern<S, A>>>
```

`from_event_pattern`, which adds and removes the handler on
`scheduler` (`FromEventPattern<TEventArgs>(Action<EventHandler<TEventArgs>>, Action<EventHandler<TEventArgs>>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event_pattern.rs#L46)

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

### from_event_pattern_conversion

```rust
fn from_event_pattern_conversion<D: 'static, S: Clone + 'static, A: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(S, A) -> ()>) -> D + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static) -> Rc<dyn IObservable<EventPattern<S, A>>>
```

The events of an event whose handlers are of the type `D`, which `conversion` makes from the
handler of a sender and arguments, as `EventPattern`s
(`FromEventPattern<TDelegate, TEventArgs>(Func<EventHandler<TEventArgs>, TDelegate>, Action<TDelegate>, Action<TDelegate>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event_pattern.rs#L57)

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

### from_event_pattern_conversion_on

```rust
fn from_event_pattern_conversion_on<D: 'static, S: Clone + 'static, A: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(S, A) -> ()>) -> D + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<EventPattern<S, A>>>
```

`from_event_pattern_conversion` on `scheduler`
(`FromEventPattern<TDelegate, TEventArgs>(Func<EventHandler<TEventArgs>, TDelegate>, Action<TDelegate>, Action<TDelegate>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event_pattern.rs#L67)

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

### try_from_event_pattern_conversion

```rust
fn try_from_event_pattern_conversion<D: 'static, S: Clone + 'static, A: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(S, A) -> ()>) -> Result<D, ObservableError> + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static) -> Rc<dyn IObservable<EventPattern<S, A>>>
```

`from_event_pattern_conversion` with a conversion
that may fail; a failure ends the subscription with its error (a conversion that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event_pattern.rs#L78)

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

### try_from_event_pattern_conversion_on

```rust
fn try_from_event_pattern_conversion_on<D: 'static, S: Clone + 'static, A: Clone + 'static, K: 'static>(conversion: impl Fn(Rc<dyn Fn(S, A) -> ()>) -> Result<D, ObservableError> + 'static, add_handler: impl Fn(D) -> K + 'static, remove_handler: impl Fn(K) -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<EventPattern<S, A>>>
```

`try_from_event_pattern_conversion` on
`scheduler`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/from_event_pattern.rs#L88)

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

### fork_join_all

```rust
fn fork_join_all<T: 'static, I>(sources: I) -> Rc<dyn IObservable<Vec<T>>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

The last values of `sources`, in their order, once all of them have completed; a source that
completes without a value completes the result without one, and the first error ends it
(`ForkJoin<TSource>(params IObservable<TSource>[])`, `ForkJoin<TSource>(IEnumerable<IObservable<TSource>>)`).
Each subscription takes the sources of `sources` anew.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/fork_join.rs#L241)

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

### zip_all

```rust
fn zip_all<T: 'static, I>(sources: I) -> Rc<dyn IObservable<Vec<T>>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

The lists of the values of the sequences of an enumerable, by position: the n-th list holds
the n-th value of each sequence (`Zip(IEnumerable<IObservable<TSource>>)` and
`Zip(params IObservable<TSource>[])`). Each subscription enumerates `sources` anew.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/zip.rs#L740)

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

### zip_all_with

```rust
fn zip_all_with<T: 'static, R: 'static, I>(sources: I, result_selector: impl Fn(Vec<T>) -> R + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

`zip_all` with each list projected by `result_selector`
(`Zip(IEnumerable<IObservable<TSource>>, Func<IList<TSource>, TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/zip.rs#L749)

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

### try_zip_all_with

```rust
fn try_zip_all_with<T: 'static, R: 'static, I>(sources: I, result_selector: impl Fn(Vec<T>) -> Result<R, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

`zip_all_with` with a selector that may fail; a failure ends the
sequence with its error (`Zip(IEnumerable<IObservable<TSource>>, Func<IList<TSource>, TResult>)`
with a selector that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/zip.rs#L759)

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

### combine_latest_all

```rust
fn combine_latest_all<T: Clone + 'static, I>(sources: I) -> Rc<dyn IObservable<Vec<T>>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

The lists of the latest values of `sources`, whenever any of them produces a value, once each
has one; a source that ends keeps its last value until all have ended
(`CombineLatest(IEnumerable<IObservable<TSource>>)` and
`CombineLatest(params IObservable<TSource>[])`). No sources: the sequence never notifies.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/combine_latest.rs#L403)

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

### combine_latest_all_with

```rust
fn combine_latest_all_with<T: 'static, R: 'static, I>(sources: I, result_selector: impl Fn(&[T]) -> R + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

`combine_latest_all` with `result_selector` applied to the latest
values (`CombineLatest(IEnumerable<IObservable<TSource>>, Func<IList<TSource>, TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/combine_latest.rs#L412)

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

### try_combine_latest_all_with

```rust
fn try_combine_latest_all_with<T: 'static, R: 'static, I>(sources: I, result_selector: impl Fn(&[T]) -> Result<R, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

`combine_latest_all_with` with a selector that may fail; a
failure ends the sequence with its error (`CombineLatest` of a list with a selector that
throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/combine_latest.rs#L422)

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

### merge_all

```rust
fn merge_all<T: 'static, I>(sources: I) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

Merges the values of the sequences of an enumerable, enumerated on the immediate scheduler
(`Merge(IEnumerable<IObservable<TSource>>)` and `Merge(params IObservable<TSource>[])`). Each
subscription enumerates `sources` anew.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/merge.rs#L320)

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

### merge_all_on

```rust
fn merge_all_on<T: 'static, I>(sources: I, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

`merge_all` enumerating on `scheduler`
(`Merge(IEnumerable<IObservable<TSource>>, IScheduler)` and
`Merge(IScheduler, params IObservable<TSource>[])`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/merge.rs#L331)

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

### merge_all_max

```rust
fn merge_all_max<T: 'static, I>(sources: I, max_concurrent: usize) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

Merges the values of the sequences of an enumerable with at most `max_concurrent` inner
subscriptions at a time (`Merge(IEnumerable<IObservable<TSource>>, int)`). Panics when
`max_concurrent` is zero.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/merge.rs#L342)

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

### merge_all_max_on

```rust
fn merge_all_max_on<T: 'static, I>(sources: I, max_concurrent: usize, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

`merge_all_max` enumerating on `scheduler`
(`Merge(IEnumerable<IObservable<TSource>>, int, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/merge.rs#L352)

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

### concat_all

```rust
fn concat_all<T: 'static, I>(sources: I) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

The values of the sequences of an enumerable, one sequence after another
(`Concat(IEnumerable<IObservable<TSource>>)` and `Concat(params IObservable<TSource>[])`).
Each subscription enumerates `sources` anew, as each sequence ends.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/concat.rs#L422)

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

### amb_all

```rust
fn amb_all<T: 'static, I>(sources: I) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static
```

The sequence of an enumerable that notifies first; the subscriptions to the others are
disposed (`Amb(IEnumerable<IObservable<TSource>>)` and `Amb(params IObservable<TSource>[])`).
No sequence ends at once; one sequence is the sequence itself.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/amb.rs#L279)

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

### defer

```rust
fn defer<T: 'static>(factory: impl Fn() -> Rc<dyn IObservable<T>> + 'static) -> Rc<dyn IObservable<T>>
```

A sequence that calls `factory` on each subscription and subscribes to the sequence it
returns (`Defer<TResult>(Func<IObservable<TResult>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/defer.rs#L29)

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

### try_defer

```rust
fn try_defer<T: 'static>(factory: impl Fn() -> Result<Rc<dyn IObservable<T>>, ObservableError> + 'static) -> Rc<dyn IObservable<T>>
```

`defer` with a factory that may fail; a failure ends the sequence with its
error (`Defer<TResult>(Func<IObservable<TResult>>)` with a factory that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/defer.rs#L35)

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

### range

```rust
fn range(start: i32, count: usize) -> Rc<dyn IObservable<i32>>
```

The `count` integers from `start`, on the scheduler of iteration, the current-thread one
(`Range(int, int)`). Panics when the last one is beyond `i32::MAX`, where upstream throws
`ArgumentOutOfRangeException`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/range.rs#L85)

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

### range_on

```rust
fn range_on(start: i32, count: usize, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<i32>>
```

The `count` integers from `start`, each notified by work of its own on `scheduler`
(`Range(int, int, IScheduler)`). Panics when the last one is beyond `i32::MAX`, where
upstream throws `ArgumentOutOfRangeException`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/range.rs#L92)

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

### repeat

```rust
fn repeat<T: Clone + 'static>(value: T) -> Rc<dyn IObservable<T>>
```

The value, forever, on the scheduler of iteration, the current-thread one
(`Repeat<TResult>(TResult)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/repeat.rs#L139)

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

### repeat_on

```rust
fn repeat_on<T: Clone + 'static>(value: T, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

The value, forever, each time by work of its own on `scheduler`
(`Repeat<TResult>(TResult, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/repeat.rs#L145)

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

### repeat_count

```rust
fn repeat_count<T: Clone + 'static>(value: T, repeat_count: usize) -> Rc<dyn IObservable<T>>
```

The value, `repeat_count` times, on the scheduler of iteration, the current-thread one
(`Repeat<TResult>(TResult, int)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/repeat.rs#L151)

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

### repeat_count_on

```rust
fn repeat_count_on<T: Clone + 'static>(value: T, repeat_count: usize, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

The value, `repeat_count` times, each time by work of its own on `scheduler`
(`Repeat<TResult>(TResult, int, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/repeat.rs#L157)

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

### generate

```rust
fn generate<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> bool + 'static, iterate: impl Fn(S) -> S + 'static, result_selector: impl Fn(&S) -> R + 'static) -> Rc<dyn IObservable<R>>
```

The values of a loop of states: from `initial_state`, while `condition` holds for the state,
the value `result_selector` gives for it, then the next state `iterate` gives; on the
scheduler of iteration, the current-thread one
(`Generate<TState, TResult>(TState, Func<TState, bool>, Func<TState, TState>, Func<TState, TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L245)

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

### generate_on

```rust
fn generate_on<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> bool + 'static, iterate: impl Fn(S) -> S + 'static, result_selector: impl Fn(&S) -> R + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<R>>
```

`generate`, each value notified by work of its own on `scheduler`
(`Generate<TState, TResult>(TState, Func<TState, bool>, Func<TState, TState>, Func<TState, TResult>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L256)

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

### try_generate

```rust
fn try_generate<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> Result<bool, ObservableError> + 'static, iterate: impl Fn(S) -> Result<S, ObservableError> + 'static, result_selector: impl Fn(&S) -> Result<R, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
```

`generate` with functions that may fail; a failure ends the sequence with
its error (`Generate` with functions that throw).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L274)

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

### try_generate_on

```rust
fn try_generate_on<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> Result<bool, ObservableError> + 'static, iterate: impl Fn(S) -> Result<S, ObservableError> + 'static, result_selector: impl Fn(&S) -> Result<R, ObservableError> + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<R>>
```

`generate_on` with functions that may fail; a failure ends the sequence
with its error (`Generate` with functions that throw).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L285)

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

### generate_after

```rust
fn generate_after<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> bool + 'static, iterate: impl Fn(S) -> S + 'static, result_selector: impl Fn(&S) -> R + 'static, time_selector: impl Fn(&S) -> Duration + 'static) -> Rc<dyn IObservable<R>>
```

`generate`, each value notified after the time `time_selector` gives for
its state, on the scheduler of time-based operations
(`Generate<TState, TResult>(TState, Func<TState, bool>, Func<TState, TState>, Func<TState, TResult>, Func<TState, TimeSpan>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L298)

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

### generate_after_on

```rust
fn generate_after_on<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> bool + 'static, iterate: impl Fn(S) -> S + 'static, result_selector: impl Fn(&S) -> R + 'static, time_selector: impl Fn(&S) -> Duration + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<R>>
```

`generate_after` on `scheduler`
(`Generate<TState, TResult>(TState, Func<TState, bool>, Func<TState, TState>, Func<TState, TResult>, Func<TState, TimeSpan>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L310)

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

### try_generate_after

```rust
fn try_generate_after<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> Result<bool, ObservableError> + 'static, iterate: impl Fn(S) -> Result<S, ObservableError> + 'static, result_selector: impl Fn(&S) -> Result<R, ObservableError> + 'static, time_selector: impl Fn(&S) -> Result<Duration, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
```

`generate_after` with functions that may fail; a failure ends the
sequence with its error (`Generate` with a `TimeSpan` selector and functions that throw).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L330)

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

### try_generate_after_on

```rust
fn try_generate_after_on<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> Result<bool, ObservableError> + 'static, iterate: impl Fn(S) -> Result<S, ObservableError> + 'static, result_selector: impl Fn(&S) -> Result<R, ObservableError> + 'static, time_selector: impl Fn(&S) -> Result<Duration, ObservableError> + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<R>>
```

`generate_after_on` with functions that may fail; a failure ends
the sequence with its error (`Generate` with a `TimeSpan` selector and functions that throw).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L342)

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

### generate_at

```rust
fn generate_at<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> bool + 'static, iterate: impl Fn(S) -> S + 'static, result_selector: impl Fn(&S) -> R + 'static, time_selector: impl Fn(&S) -> SystemTime + 'static) -> Rc<dyn IObservable<R>>
```

`generate`, each value notified at the time `time_selector` gives for its
state, on the scheduler of time-based operations
(`Generate<TState, TResult>(TState, Func<TState, bool>, Func<TState, TState>, Func<TState, TResult>, Func<TState, DateTimeOffset>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L357)

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

### generate_at_on

```rust
fn generate_at_on<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> bool + 'static, iterate: impl Fn(S) -> S + 'static, result_selector: impl Fn(&S) -> R + 'static, time_selector: impl Fn(&S) -> SystemTime + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<R>>
```

`generate_at` on `scheduler`
(`Generate<TState, TResult>(TState, Func<TState, bool>, Func<TState, TState>, Func<TState, TResult>, Func<TState, DateTimeOffset>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L369)

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

### try_generate_at

```rust
fn try_generate_at<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> Result<bool, ObservableError> + 'static, iterate: impl Fn(S) -> Result<S, ObservableError> + 'static, result_selector: impl Fn(&S) -> Result<R, ObservableError> + 'static, time_selector: impl Fn(&S) -> Result<SystemTime, ObservableError> + 'static) -> Rc<dyn IObservable<R>>
```

`generate_at` with functions that may fail; a failure ends the sequence
with its error (`Generate` with a `DateTimeOffset` selector and functions that throw).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L389)

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

### try_generate_at_on

```rust
fn try_generate_at_on<S: Clone + 'static, R: 'static>(initial_state: S, condition: impl Fn(&S) -> Result<bool, ObservableError> + 'static, iterate: impl Fn(S) -> Result<S, ObservableError> + 'static, result_selector: impl Fn(&S) -> Result<R, ObservableError> + 'static, time_selector: impl Fn(&S) -> Result<SystemTime, ObservableError> + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<R>>
```

`generate_at_on` with functions that may fail; a failure ends the
sequence with its error (`Generate` with a `DateTimeOffset` selector and functions that
throw).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/generate.rs#L402)

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

### using

```rust
fn using<T: 'static, R: IDisposable + ?Sized + 'static>(resource_factory: impl Fn() -> Rc<R> + 'static, observable_factory: impl Fn(Rc<R>) -> Rc<dyn IObservable<T>> + 'static) -> Rc<dyn IObservable<T>>
```

A sequence that, on each subscription, creates a resource with `resource_factory`,
subscribes to the sequence `observable_factory` makes from it, and disposes the resource
when the subscription ends
(`Using<TResult, TResource>(Func<TResource>, Func<TResource, IObservable<TResult>>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/using.rs#L99)

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

### try_using

```rust
fn try_using<T: 'static, R: IDisposable + ?Sized + 'static>(resource_factory: impl Fn() -> Result<Rc<R>, ObservableError> + 'static, observable_factory: impl Fn(Rc<R>) -> Result<Rc<dyn IObservable<T>>, ObservableError> + 'static) -> Rc<dyn IObservable<T>>
```

`using` with factories that may fail; a failure ends the sequence with its
error, after disposing the resource if it was created (`Using` with factories that throw).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/using.rs#L111)

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

### start

```rust
fn start<T: Clone + 'static>(function: impl FnOnce() -> T + 'static) -> Rc<dyn IObservable<T>>
```

Runs `function` on the scheduler of asynchronous conversions and notifies its result, to
every observer, when it has run (`Start<TResult>(Func<TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/start.rs#L13)

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

### start_on

```rust
fn start_on<T: Clone + 'static>(function: impl FnOnce() -> T + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

Runs `function` on `scheduler` and notifies its result, to every observer, when it has run
(`Start<TResult>(Func<TResult>, IScheduler)`).

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

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

### try_start

```rust
fn try_start<T: Clone + 'static>(function: impl FnOnce() -> Result<T, ObservableError> + 'static) -> Rc<dyn IObservable<T>>
```

`start` with a function that may fail; a failure is notified as the error of
the sequence (`Start<TResult>(Func<TResult>)` with a function that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/start.rs#L25)

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

### try_start_on

```rust
fn try_start_on<T: Clone + 'static>(function: impl FnOnce() -> Result<T, ObservableError> + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
```

`start_on` with a function that may fail; a failure is notified as the
error of the sequence (`Start<TResult>(Func<TResult>, IScheduler)` with a function that
throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/start.rs#L32)

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

### start_action

```rust
fn start_action(action: impl FnOnce() -> () + 'static) -> Rc<dyn IObservable<()>>
```

Runs `action` on the scheduler of asynchronous conversions and notifies a unit value, to
every observer, when it has run (`Start(Action)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/start.rs#L50)

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

### start_action_on

```rust
fn start_action_on(action: impl FnOnce() -> () + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<()>>
```

Runs `action` on `scheduler` and notifies a unit value, to every observer, when it has run
(`Start(Action, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/start.rs#L56)

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

### try_start_action

```rust
fn try_start_action(action: impl FnOnce() -> Result<(), ObservableError> + 'static) -> Rc<dyn IObservable<()>>
```

`start_action` with an action that may fail; a failure is notified as
the error of the sequence (`Start(Action)` with an action that throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/start.rs#L62)

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

### try_start_action_on

```rust
fn try_start_action_on(action: impl FnOnce() -> Result<(), ObservableError> + 'static, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<()>>
```

`start_action_on` with an action that may fail; a failure is
notified as the error of the sequence (`Start(Action, IScheduler)` with an action that
throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/start.rs#L69)

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

### to_observable

```rust
fn to_observable<I>(source: I) -> Rc<dyn IObservable<<I as >::Item>>
where I: IntoIterator + Clone + 'static,
      <I as >::Item: 'static
```

The values of `source`, on the scheduler of iteration, the current-thread one
(`ToObservable<TSource>(IEnumerable<TSource>)`). Each subscription iterates a clone of
`source`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_observable.rs#L121)

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

### to_observable_on

```rust
fn to_observable_on<I>(source: I, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<<I as >::Item>>
where I: IntoIterator + Clone + 'static,
      <I as >::Item: 'static
```

The values of `source`, each notified by work of its own on `scheduler`
(`ToObservable<TSource>(IEnumerable<TSource>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_observable.rs#L131)

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

### try_to_observable

```rust
fn try_to_observable<I, T>(source: I) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Result<T, ObservableError>> + Clone + 'static,
      T: 'static
```

`to_observable` of a sequence whose iteration may fail: an error
ends the sequence with it (`ToObservable` of an enumerable whose `MoveNext` throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_observable.rs#L141)

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

### try_to_observable_on

```rust
fn try_to_observable_on<I, T>(source: I, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Result<T, ObservableError>> + Clone + 'static,
      T: 'static
```

`to_observable_on` of a sequence whose iteration may fail: an
error ends the sequence with it (`ToObservable` of an enumerable whose `MoveNext` throws).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_observable.rs#L151)

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

### subscribe_enumerable

```rust
fn subscribe_enumerable<I>(source: I, observer: Rc<dyn IObserver<<I as >::Item>>) -> Rc<dyn IDisposable>
where I: IntoIterator + Clone + 'static,
      <I as >::Item: 'static
```

Notifies the values of `source` to `observer`, on the scheduler of iteration, the
current-thread one (`Subscribe<TSource>(IEnumerable<TSource>, IObserver<TSource>)`).

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

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

### subscribe_enumerable_on

```rust
fn subscribe_enumerable_on<I>(source: I, observer: Rc<dyn IObserver<<I as >::Item>>, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IDisposable>
where I: IntoIterator + Clone + 'static,
      <I as >::Item: 'static
```

Notifies the values of `source` to `observer`, each by work of its own on `scheduler`
(`Subscribe<TSource>(IEnumerable<TSource>, IObserver<TSource>, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/to_observable.rs#L171)

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

### timer

```rust
fn timer(due_time: Duration) -> Rc<dyn IObservable<i64>>
```

Zero after `due_time`, then the end, on the scheduler of time-based operations
(`Timer(TimeSpan)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L190)

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

### timer_at

```rust
fn timer_at(due_time: SystemTime) -> Rc<dyn IObservable<i64>>
```

Zero at `due_time`, then the end, on the scheduler of time-based operations
(`Timer(DateTimeOffset)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L196)

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

### timer_periodic

```rust
fn timer_periodic(due_time: Duration, period: Duration) -> Rc<dyn IObservable<i64>>
```

Zero after `due_time`, then the following integers every `period`, on the scheduler of
time-based operations (`Timer(TimeSpan, TimeSpan)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L202)

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

### timer_at_periodic

```rust
fn timer_at_periodic(due_time: SystemTime, period: Duration) -> Rc<dyn IObservable<i64>>
```

Zero at `due_time`, then the following integers every `period`, on the scheduler of
time-based operations (`Timer(DateTimeOffset, TimeSpan)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L208)

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

### timer_on

```rust
fn timer_on(due_time: Duration, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<i64>>
```

Zero after `due_time`, then the end, on `scheduler` (`Timer(TimeSpan, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L213)

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

### timer_at_on

```rust
fn timer_at_on(due_time: SystemTime, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<i64>>
```

Zero at `due_time`, then the end, on `scheduler` (`Timer(DateTimeOffset, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L218)

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

### timer_periodic_on

```rust
fn timer_periodic_on(due_time: Duration, period: Duration, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<i64>>
```

Zero after `due_time`, then the following integers every `period`, on `scheduler`
(`Timer(TimeSpan, TimeSpan, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L224)

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

### timer_at_periodic_on

```rust
fn timer_at_periodic_on(due_time: SystemTime, period: Duration, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<i64>>
```

Zero at `due_time`, then the following integers every `period`, on `scheduler`
(`Timer(DateTimeOffset, TimeSpan, IScheduler)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/timer.rs#L230)

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

### interval

```rust
fn interval(period: Duration) -> Rc<dyn IObservable<i64>>
```

The integers from zero, one every `period`, on the scheduler of time-based operations
(`Interval(TimeSpan)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/interval.rs#L13)

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

### interval_on

```rust
fn interval_on(period: Duration, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<i64>>
```

The integers from zero, one every `period`, through the periodic scheduling of `scheduler`
(`Interval(TimeSpan, IScheduler)`).

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

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

### catch_all

```rust
fn catch_all<T: 'static, I>(sources: I) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

Continues with the next of `sources` when one fails; the last error ends the sequence when
all of them fail (`Catch(IEnumerable<IObservable<TSource>>)`, `Catch(params
IObservable<TSource>[])`). The sources are enumerated again for each subscription.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/catch.rs#L423)

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

### try_catch_all

```rust
fn try_catch_all<T: 'static, I>(sources: impl Fn() -> Result<I, ObservableError> + 'static) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Result<Rc<dyn IObservable<T>>, ObservableError>>,
      <I as >::IntoIter: 'static
```

`catch_all` over sources whose enumeration may fail: `sources` starts an
enumeration (`GetEnumerator`, which fails with an `Err`), and each item is the next source
or the error of the step (`MoveNext` that throws). A failure ends the sequence with its
error.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/catch.rs#L435)

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

### on_error_resume_next_all

```rust
fn on_error_resume_next_all<T: 'static, I>(sources: I) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Rc<dyn IObservable<T>>> + Clone + 'static,
      <I as >::IntoIter: 'static
```

Each of `sources` in turn, whether it fails or completes; the sequence completes after the
last one (`OnErrorResumeNext(IEnumerable<IObservable<TSource>>)`, `OnErrorResumeNext(params
IObservable<TSource>[])`). The sources are enumerated again for each subscription.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/on_error_resume_next.rs#L18)

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

### try_on_error_resume_next_all

```rust
fn try_on_error_resume_next_all<T: 'static, I>(sources: impl Fn() -> Result<I, ObservableError> + 'static) -> Rc<dyn IObservable<T>>
where I: IntoIterator<Item = Result<Rc<dyn IObservable<T>>, ObservableError>>,
      <I as >::IntoIter: 'static
```

`on_error_resume_next_all` over sources whose enumeration
may fail: `sources` starts an enumeration (`GetEnumerator`, which fails with an `Err`), and
each item is the next source or the error of the step (`MoveNext` that throws). A failure
ends the sequence with its error.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/on_error_resume_next.rs#L30)

## Trait implementations

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

## Availability

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