ArcGIS Pro 2.6 API Reference Guide
WaitForRowsAsync(CancellationToken) Method

ArcGIS.Core.Data.Realtime Namespace > RealtimeCursor Class > WaitForRowsAsync Method : WaitForRowsAsync(CancellationToken) Method
A System.Threading.CancellationToken used to control cancellation behavior for the returned task.
Asynchronously waits for new rows to be available in the internal queue of this real-time cursor. The returned System.Threading.Tasks.Task will also complete if the state of this RealtimeCursor (see GetState) changes from RealtimeCursorState.Subscribed. This method can be called on any thread.
Syntax
public Task<bool> WaitForRowsAsync( 
   CancellationToken cancellationToken
)
Public Overloads Function WaitForRowsAsync( _
   ByVal cancellationToken As CancellationToken _
) As Task(Of Boolean)

Parameters

cancellationToken
A System.Threading.CancellationToken used to control cancellation behavior for the returned task.

Return Value

A System.Threading.Tasks.Task that will complete once this cursor becomes unsubscribed or new rows are available in the internal queue of this real-time cursor. The returned System.Boolean value is false if this cursor is unsubscribed and there are no more rows to be read. Otherwise it's true.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

RealtimeCursor Class
RealtimeCursor Members
Overload List
GetState Method