,System.Func{--0,System.Boolean})} ,System.Func{--0,System.Boolean},System.Threading.CancellationToken)} )} ,System.Threading.CancellationToken)}
SignalAsyncExtensions.FirstAsync(IObservableAsync, Func) method¶
Defined in
Type: SignalAsyncExtensions
Namespace: ReactiveUI.Primitives.Async
Assembly: ReactiveUI.Primitives.Async.dll
Applies to
net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481
Overloads¶
- 1.
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this, Func<T, bool> predicate) - 2.
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this, Func<T, bool> predicate, CancellationToken cancellationToken) - 3.
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this) - 4.
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this, CancellationToken cancellationToken)
1. Overload¶
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this, Func<T, bool> predicate)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | -- |
predicate | Func | -- |
Returns: ValueTask
2. Overload¶
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this, Func<T, bool> predicate, CancellationToken cancellationToken)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | -- |
predicate | Func | -- |
cancellationToken | CancellationToken | -- |
Returns: ValueTask
3. Overload¶
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | -- |
Returns: ValueTask
4. Overload¶
public static ValueTask<T> FirstAsync<T>(this IObservableAsync<T> @this, CancellationToken cancellationToken)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | [IObservableAsync | -- |
cancellationToken | CancellationToken | -- |
Returns: ValueTask