Non-fatal errors are returned within the stream rather than as
exceptions that would halt the entire stream. This is because
some implementations may pull data from multiple sources
including some that may be unreliable. Such errors can generally
be ignored, but should be printed for debugging.
See GraffitiObjectStreamError.
The stream is an AsyncGenerator
that can be iterated over using for await loops or calling next on the generator.
The stream can be terminated by breaking out of a loop calling return on the generator.
The stream ends by returning a
cursor string,
that can be passed to continueDiscover to
resume the stream from where it left off.
A stream of data that returned by
discoverandcontinueDiscover.Non-fatal errors are returned within the stream rather than as exceptions that would halt the entire stream. This is because some implementations may pull data from multiple sources including some that may be unreliable. Such errors can generally be ignored, but should be printed for debugging. See GraffitiObjectStreamError.
The stream is an
AsyncGeneratorthat can be iterated over usingfor awaitloops or callingnexton the generator. The stream can be terminated by breaking out of a loop callingreturnon the generator.The stream ends by returning a
cursorstring, that can be passed tocontinueDiscoverto resume the stream from where it left off.