Skip to content

ObservableAsync.Range(int, int) 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

public static IObservableAsync<int> Range(int start, int count)

View source

Summary: Creates an observable sequence that emits a range of consecutive integer values, starting from the specified value.

Parameters

NameTypeDescription
startintThe value of the first integer in the sequence.
countintThe number of sequential integers to emit. Must be non-negative.

Returns: IObservableAsync -- An observable sequence that emits integers from start to start + count - 1, in order.

Remarks

The sequence completes after emitting all values. If count is zero, the sequence completes immediately without emitting any values. The operation supports cancellation via the observer's cancellation token.