Settings

Theme

Clean web workers using callbacks

github.com

1 points by mako-taco 13 years ago · 0 comments · 1 min read

Reader

This library is a project I made to make web worker code easier to write and easier to read. As they stand, getting use out of web workers involves writing a series of messages and responses that are not standardized in any way between authors. The library I have created, Ozai, creates a web worker by passing a javascript object literal to its constructor. The result is a client-side object which represents the web worker. Instead of passing arbitrary messages, the author calls functions that are obvious to anyone reading the code, and passes them callbacks to fire when then web worker has completed its job.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection