ArcGIS Pro 2.7 API Reference Guide
WaitForRowsAsync() Method

ArcGIS.Core.Data.Realtime Namespace > RealtimeCursor Class > WaitForRowsAsync Method : WaitForRowsAsync() Method
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()
Public Overloads Function WaitForRowsAsync() As Task(Of Boolean)

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

See Also

Reference

RealtimeCursor Class
RealtimeCursor Members
Overload List
GetState Method