brief-rss / brief

RSS reader extension for Firefox
Other
215 stars 44 forks source link

database: `async` migration #483

Closed tanriol closed 4 years ago

tanriol commented 4 years ago

Raw IndexedDB code tends to become kind of callback hell. After Firefox implemented correctly the microtask/promise interaction (i.e. the ability to resolve a promise and have its callbacks run before the transaction auto-commits) it's possible to write the same code with async/await, which is much more maintainable.