A JavaScript library all about workers. Workers should make your life easier not harder and with communistjs launching a new worker is as simple as calling a function, and it works the same across all (modern) browsers.
How easy? var worker = cw(myFunc)
creates a worker, send it data with var response = worker.data(YOUR DATA);
, response is a promise. It's that easy, read bellow for the full API and examples.
Want to use it? Grab the development version or production version from the dist folder.
For usage checkout the API page, read a blog posts or browse a few demos:
- Parsing a dictionary
- Fractal Map, (April Mozilla Dev Derby Finalist)
- RTree Bounding Boxes
- Census Visualization
- Vector Map Tiles
- Unzipping files and reprojecting maps
Important: the file communist.js or communist.min.js should be a stand alone file hosted on the same domain as your web page, if you can't or need to bundle communist 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 communist.