Skip to content

,--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)

View source

Summary: Prepends the specified value to the beginning of the observable sequence.

Type parameters

NameDescription
TThe type of elements in the source sequence.

Parameters

NameTypeDescription
this[IObservableAsync](#The source observable sequence.
valueTThe value to prepend to the sequence.

Returns: IObservableAsync -- An observable sequence that emits the specified value first, followed by the elements of the source sequence.

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)

View source

Summary: Prepends the specified values to the beginning of the observable sequence.

Type parameters

NameDescription
TThe type of elements in the source sequence.

Parameters

NameTypeDescription
this[IObservableAsync](#The source observable sequence.
valuesIEnumerableThe values to prepend to the sequence. Cannot be null.

Returns: IObservableAsync -- An observable sequence that emits the specified values first, followed by the elements of the source sequence.

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)

View source

Summary: Prepends the specified values to the beginning of the observable sequence.

Type parameters

NameDescription
TThe type of elements in the source sequence.

Parameters

NameTypeDescription
this[IObservableAsync](#The source observable sequence.
params valuesT[]The values to prepend to the sequence.

Returns: IObservableAsync -- An observable sequence that emits the specified values first, followed by the elements of the source sequence.

Remarks

This overload accepts a params array for convenience. Values are emitted in the order they appear in the array.