isCursorEmpty {rethinker} | R Documentation |
Check whether a given cursor is fully drained and will output no more datum. The function never blocks; also verifies that the underlying connection is useful.
isCursorEmpty(cursor)
cursor |
Cursor to check; a result of |
TRUE
if cursor has no more data to return.
It is possible that cursorNext
will return NULL
just after isCursorEmpty
returns FALSE
.
Changefeeds cursors (made with r()$...$changes()$...
) will never become empty (provided that connection won't become broken).
Miron B. Kursa