Updates asynchronous methods (flush(), getSize(), truncate()) in SyncAccessHandle in File System Access API to synchronous methods. SyncAccessHandle currently has a mix of sync and async methods, hindering the performance and the usability, especially for applications porting c/c++ to Wasm. This update will bring consistency in the API usage and improve the performance for Wasm-based libraries.
The mix of sync and async methods in SyncAccessHandle lowers the performance in Wasm-based applications, as Wasm currently does not support asynchronous calls and a workaround requires using an additional library. By making all methods synchronous, Wasm-based applications will not only have the improved performance but also will be able to use Posix-like, synchronous file API.