Let's take a look at a very simple example of an asychronous task using jQuery and its ajax method to load a file of data. task.spawn(function() { var data = yield $.ajax("text.html"); ...
There are some interesting things going on the latest version of JavaScript and already some new uses are being found for them. Task.js uses the new generator facility to build an asynchronous task ...