,--0)} ,System.Collections.Generic.IEnumerable{--0})}
ObservableAsync.Prepend(IObservableAsync, T) method¶
Defined in
Type: ObservableAsync
Namespace: ReactiveUI.Extensions.Async
Assembly: ReactiveUI.Extensions.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Overloads¶
- 1.
public static IObservableAsync<T> Prepend<T>(this IObservableAsync<T> @this, T value) - 2.
public static IObservableAsync<T> Prepend<T>(this IObservableAsync<T> @this, IEnumerable<T> values)
1. Overload¶
public static IObservableAsync<T> Prepend<T>(this IObservableAsync<T> @this, T value)
Summary: Returns a new observable sequence that begins with the specified value, followed by the elements of the current sequence.
Type parameters
| Name | Description |
|---|---|
T | The type of elements in the sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | The source observable sequence. |
value | T | The value to prepend to the beginning of the sequence. |
Returns: IObservableAsync
2. Overload¶
public static IObservableAsync<T> Prepend<T>(this IObservableAsync<T> @this, IEnumerable<T> values)
Summary: Returns a new observable sequence that emits the specified values before the emissions from the current sequence.
Type parameters
| Name | Description |
|---|---|
T | The type of elements in the sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | The source observable sequence. |
values | IEnumerable | The collection of values to emit before the original sequence. Cannot be null. |
Returns: IObservableAsync
Remarks
The values in the provided collection are emitted in order before any items from the original sequence. If the sequence is unsubscribed before completion, remaining values may not be emitted.