Skip to content

)} ,System.Threading.CancellationToken)} ,System.Func{--0,System.Boolean})} ,System.Func{--0,System.Boolean},System.Threading.CancellationToken)}

LinqExtensions.AnyAsync(IObservable) method

Defined in

Type: LinqExtensions Namespace: ReactiveUI.Primitives.Reactive Assembly: ReactiveUI.Primitives.Reactive.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 Task<bool> AnyAsync<T>(this IObservable<T> source) where T : notnull
  • 2. public static Task<bool> AnyAsync<T>(this IObservable<T> source, CancellationToken cancellationToken) where T : notnull
  • 3. public static Task<bool> AnyAsync<T>(this IObservable<T> source, Func<T, bool> predicate) where T : notnull
  • 4. public static Task<bool> AnyAsync<T>(this IObservable<T> source, Func<T, bool> predicate, CancellationToken cancellationToken) where T : notnull

1. Overload

public static Task<bool> AnyAsync<T>(this IObservable<T> source) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
sourceIObservable--

Returns: Task

2. Overload

public static Task<bool> AnyAsync<T>(this IObservable<T> source, CancellationToken cancellationToken) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
sourceIObservable--
cancellationTokenCancellationToken--

Returns: Task

3. Overload

public static Task<bool> AnyAsync<T>(this IObservable<T> source, Func<T, bool> predicate) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
sourceIObservable--
predicateFunc--

Returns: Task

4. Overload

public static Task<bool> AnyAsync<T>(this IObservable<T> source, Func<T, bool> predicate, CancellationToken cancellationToken) where T : notnull

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
sourceIObservable--
predicateFunc--
cancellationTokenCancellationToken--

Returns: Task