Make database.getAll() not block the main thread on database access.

This commit is contained in:
2024-06-12 20:29:39 -04:00
parent 0423ed7fb4
commit 248b258413
2 changed files with 78 additions and 19 deletions

View File

@ -279,7 +279,7 @@ static void _test_database(const tf_test_options_t* options)
" await db.set('c', 3);\n"
"\n"
" var expected = ['a', 'b', 'c'];\n"
" var have = db.getAll();\n"
" var have = await db.getAll();\n"
" for (var i = 0; i < have.length; i++) {\n"
" var item = have[i];\n"
" if (expected.indexOf(item) == -1) {\n"