Stream

Type doc:

Returned from connection:fetch_all_async(). It allows you to do other things while the query is running in a background thread.

Fields:

Methods:

try_next: function(self: Stream ):(boolean , any)

returns the next item if it is available or nill if not.

Does NOT block the main thread.

Waits until the next item is available and then returns it.

DOES block the main thread

loop_all: function<X>(self: Stream , function(any):(X)):({X})

iter: function( Stream ):(function( Stream ):(any) , Stream )

Constructs a blocking iterator that will loop over all the items.

help: function(string):(string)