greenlet
worker-dom
greenlet | worker-dom | |
---|---|---|
1 | 1 | |
4,650 | 3,166 | |
- | 0.4% | |
0.0 | 7.4 | |
about 3 years ago | 4 days ago | |
JavaScript | TypeScript | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
greenlet
-
Converting expensive synchronous functions to asynchronous
Greenlet (or a similar library) may help: It lets you invoke a function as if it were async, but it runs in a web worker.
worker-dom
-
Sleekiest JavaScript Trick you know?
I recently figure how to get this trick to work. You can use synchronous xhr and service workers to make synchronous code inside dedicated workers to synchronously wait for async code to finish before continuing. There are libraries to do it for you but it is nice to know how to do it myself now.
What are some alternatives?
parallel.js - Easy multi-core processing utilities for Node.
partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. ๐
threads.js - ๐งต Make web workers & worker threads as simple as a function call.
workerize-loader - ๐๏ธ Automatically move a module into a Web Worker (Webpack loader)
post-me - ๐ฉ Use web Workers and other Windows through a simple Promise API
workly - A really simple way to move a function or class to a web worker. ๐๏ธโโ๏ธโ ๐
worker-plugin - ๐ฉโ๐ญ Adds native Web Worker bundling support to Webpack.
WebCodecsOpusRecorder - WebCodecs Opus Recorder/Media Source Extensions Opus EncodedAudioChunk Player
comlink - Comlink makes WebWorkers enjoyable.
workerize - ๐๏ธ Run a module in a Web Worker.