Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IndexedDB synchronous api + web workers - what's the point?

The IndexedDB's syncronous API is intented to be used inside a Web worker:

The synchronous API is intended to be used only inside of Web Workers.

But since theres an ansyncronous API, whats the point of using the synchronous API in a web worker. The async API wont affect the UI thread anyway?

like image 699
Johan Avatar asked Dec 11 '22 22:12

Johan


1 Answers

Synchronous API is easier to use then async API. Async is not necessary for web worker.

like image 105
Kyaw Tun Avatar answered Dec 28 '22 12:12

Kyaw Tun