Language

AsyncEnumerable.SkipWhile Method

Definition

Overloads

Name Description
SkipWhile(IAsyncEnumerable, Func>)

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

SkipWhile(IAsyncEnumerable, Func>)

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.

SkipWhile(IAsyncEnumerable, Func)

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

SkipWhile(IAsyncEnumerable, Func)

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.

SkipWhile(IAsyncEnumerable, Func>)

Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func> predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> -> System.Collections.Generic.IAsyncEnumerable<'Source>

Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)

Type Parameters

TSource

The type of the elements of source.

Parameters

source
IAsyncEnumerable

An IAsyncEnumerable to return elements from.

predicate
FuncCancellationToken,ValueTask<Boolean>>

A function to test each element for a condition.

Returns

An IAsyncEnumerable that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.

Exceptions

predicate is null.

Applies to

SkipWhile(IAsyncEnumerable, Func>)

Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func> predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> -> System.Collections.Generic.IAsyncEnumerable<'Source>

Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)

Type Parameters

TSource

The type of the elements of source.

Parameters

source
IAsyncEnumerable

An IAsyncEnumerable to return elements from.

predicate
FuncInt32,CancellationToken,ValueTask<Boolean>>

A function to test each element for a condition; the second parameter of the function represents the index of the source element.

Returns

An IAsyncEnumerable that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.

Exceptions

predicate is null.

Applies to

SkipWhile(IAsyncEnumerable, Func)

Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>

Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Boolean)) As IAsyncEnumerable(Of TSource)

Type Parameters

TSource

The type of the elements of source.

Parameters

source
IAsyncEnumerable

An IAsyncEnumerable to return elements from.

predicate
FuncBoolean>

A function to test each element for a condition.

Returns

An IAsyncEnumerable that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.

Exceptions

predicate is null.

Applies to

SkipWhile(IAsyncEnumerable, Func)

Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs
Source:
SkipWhile.cs

Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>

Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, Boolean)) As IAsyncEnumerable(Of TSource)

Type Parameters

TSource

The type of the elements of source.

Parameters

source
IAsyncEnumerable

An IAsyncEnumerable to return elements from.

predicate
FuncInt32,Boolean>

A function to test each element for a condition; the second parameter of the function represents the index of the source element.

Returns

An IAsyncEnumerable that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.

Exceptions

predicate is null.

Applies to