,--0)} ,System.Collections.Generic.IEnumerable{--0})} ,--0[])}
ObservableAsync.StartWith(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> StartWith<T>(this IObservableAsync<T> @this, T value) - 2.
public static IObservableAsync<T> StartWith<T>(this IObservableAsync<T> @this, IEnumerable<T> values) - 3.
public static IObservableAsync<T> StartWith<T>(this IObservableAsync<T> @this, params T[] values)
1. Overload¶
public static IObservableAsync<T> StartWith<T>(this IObservableAsync<T> @this, T value)
Summary: Prepends the specified value to the beginning of the observable sequence.
Type parameters
| Name | Description |
|---|---|
T | The type of elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | The source observable sequence. |
value | T | The value to prepend to the sequence. |
Returns: IObservableAsync
Remarks
This is equivalent to Prepend(T) and follows the System.Reactive naming convention.
2. Overload¶
public static IObservableAsync<T> StartWith<T>(this IObservableAsync<T> @this, IEnumerable<T> values)
Summary: Prepends the specified values to the beginning of the observable sequence.
Type parameters
| Name | Description |
|---|---|
T | The type of elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | The source observable sequence. |
values | IEnumerable | The values to prepend to the sequence. Cannot be null. |
Returns: IObservableAsync
Remarks
This is equivalent to Prepend(IEnumerable) and follows the System.Reactive naming convention. Values are emitted in the order they appear in the collection.
3. Overload¶
public static IObservableAsync<T> StartWith<T>(this IObservableAsync<T> @this, params T[] values)
Summary: Prepends the specified values to the beginning of the observable sequence.
Type parameters
| Name | Description |
|---|---|
T | The type of elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | The source observable sequence. |
params values | T[] | The values to prepend to the sequence. |
Returns: IObservableAsync
Remarks
This overload accepts a params array for convenience. Values are emitted in the order they appear in the array.