Accessing IndexedDB from multiple javascript threads

前端 未结 3 963
春和景丽
春和景丽 2021-02-03 09:56

Overview: I am trying to avoid a race condition with accessing an IndexedDB from both a webpage and a web-worker.

Setup: Webpage tha

3条回答
  •  抹茶落季
    2021-02-03 10:33

    Can you use a transaction?
    https://developer.mozilla.org/en/IndexedDB/IDBTransaction

提交回复
热议问题