fulltext-engine icon indicating copy to clipboard operation
fulltext-engine copied to clipboard

how to stop a stream?

Open hems opened this issue 10 years ago • 0 comments

dbl = LevelQuery(dbl)
dbl.query.use(full_text_engine())

stream = dbl.query( key, value )
stream.on( "data", function() { console.log( "at some point i got enough" )} );

At this point, how to "stop" the stream?

i tried stream.pause(), stream.close(), stream.end(), stream.stop() but none seems to work.

hems avatar Feb 20 '15 03:02 hems