skdb icon indicating copy to clipboard operation
skdb copied to clipboard

Creating an SKDB instance as a worker causes JS to hang

Open gregsexton opened this issue 1 year ago • 1 comments

Repro:

import { createSkdb } from "skdb";
const db = await createSkdb({ asWorker: true });

If you change asWorker to false the node process will exit cleanly, otherwise it hangs.

The skdb type has a closeConnection method. We should probably change this to close() which should close any conns, other resources, and the worker if needed.

gregsexton avatar Feb 01 '24 11:02 gregsexton

This is a low hanging one if someone fancies a quick win.

gregsexton avatar Feb 01 '24 11:02 gregsexton

Closing skdb-specific issues as skdb in its current form is being deprecated.

beauby avatar Sep 30 '24 18:09 beauby