The new Google V8 API connects WebAssembly to asynchronous web

Google V8 API connects WebAssembly to asynchronous web

The creators of Google’s V8 JavaScript/WebAssembly engine have introduced the JavaScript Promise Integration (JSPI) API, which enables WebAssembly applications that assume access to external functionality is synchronous to operate seamlessly in asynchronous environments.

JSPI should not yet be used in production applications because it is still in an experimental phase, according to the developers. According to them, it will eventually become a standard and be implemented by all major browsers. Asynchronous web APIs and synchronous WebAssembly applications are connected by JSPI.

To achieve this, the application is put on hold whenever it makes a synchronous API call and then resumed once the asynchronous I/O operation is complete.

Read More: New Google V8 API bridges WebAssembly and asynchronous web