Comlink

на сайте с December 06, 2022 21:52
Comlink makes WebWorkers enjoyable. Comlink is a tiny library (1.1kB), that removes the mental barrier of thinking about postMessage and hides the fact that you are working with workers. At a more abstract level it is an RPC implementation for postMessage and ES6 Proxies.