Close cursor from the outside #526
Unanswered
mattbishop
asked this question in
Q&A
Replies: 1 comment 1 reply
-
In reading further, AsyncIterator has two optional methods-- |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using cursors to page data, and I understand from the docs that the cursor can be closed early by
break
ing from the for...await loop or returningsql.END
from the callback. In my case, I a signal outside the consumer of the cursor that indicates I need to close it.Is there a way to close a cursor after it has started iterating, but from outside the consumption loop?
Beta Was this translation helpful? Give feedback.
All reactions