We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ready()
getAllIt()
The following code will demonstrate how to hang node.js by calling close() after getAllIt()
close()
#!/usr/bin/env ts-node import { SnapDB, } from 'snap-db' async function main () { const db = new SnapDB({ dir: '/tmp/xx', key: 'string', }) // await db.ready() const iterator = await db.getAllIt() for await (const i of iterator) { console.info(i) } console.info('before ready()') await db.ready() console.info('after ready()') await db.close() } main()
Output:
$ ./t.ts before ready() ^C
The text was updated successfully, but these errors were encountered:
Fixed issue #8
0398dfc
1.1.3 has been released on NPM and resolves this issue. Feel free to comment if you find anything further!
1.1.3
Sorry, something went wrong.
No branches or pull requests
The following code will demonstrate how to hang node.js by calling
close()
aftergetAllIt()
Output:
$ ./t.ts before ready() ^C
The text was updated successfully, but these errors were encountered: