GENERATORS + PROMISE = TASKS

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:

KODDOS WEB HOSTING AND VPS RENTAL

KODDOS

GENERAL NEWS