jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.07k stars 218 forks source link

Update internal API to use promises and `async`/`await` #358

Closed james-pre closed 1 year ago

james-pre commented 1 year ago

Updates internal asynchronous functions to use async/await instead of callbacks. It does not change any emulation. This change makes internal asynchronous methods significantly more readable in addition to their implementations now being very similar to their synchronous counterparts.