Share via


IDbAsyncEnumerator.MoveNextAsync(CancellationToken) Method

Definition

Advances the enumerator to the next element in the sequence, returning the result asynchronously.

public System.Threading.Tasks.Task<bool> MoveNextAsync (System.Threading.CancellationToken cancellationToken);
abstract member MoveNextAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>

Parameters

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

A task that represents the asynchronous operation. The task result contains true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the sequence.

Applies to