Friday, April 26, 2013

Task.js: Beautiful Concurrency for JavaScript

Task.js: Beautiful Concurrency for JavaScript: "task.js is an experimental library for ES6 that makes sequential, blocking I/O simple and beautiful, using the power of JavaScript’s new yield operator.

Tasks are interleaved like threads, but they are cooperative rather than pre-emptive: they block on promises with yield. Here’s an example using jQuery:"

'via Blog this'