Multi proccessing with workers in the browser.
Want to see pretty graphs? Log in now!
npm install catiline
|1||downloads in the last day|
|22||downloads in the last week|
|98||downloads in the last month|
|Last Published By|
|Version||2.9.3 last updated 6 months ago|
|Keywords||workers, threads, parallel|
How easy is it?
var worker = cw(myFunc) creates a worker. Send it data with
var response = worker.data(YOUR DATA);, and the response is a promise. It's that easy. For more in-depth usage, checkout the examples bellow or the
- Parsing a dictionary
- Fractal Map, (April Mozilla Dev Derby Finalist)
- RTree Bounding Boxes
- Census Visualization
- Vector Map Tiles
- Unzipping files and reprojecting maps
Updates and changes are all in the changelog.
There is also a plugin list.
Important: the file catiline.js or catiline.min.js should be a standalone file hosted on the same domain as your web page. If you can't, or need to bundle catiline but you need it to work on IE10, Opera, and Safari, you have to host the file "SHIM_WORKER.js" on the same domain as the html file
and set the path to it in a global variable
SHIM_WORKER_PATH before you load catiline.