Unfinished and not tested beyond my own case.
Usage
var wait = new Wait();
wait.complete(function () {
console.log('we are done - now report');
});
$.get(url, wait.until(function (data) {
// do something with data
});
db.users.find(wait.until(function (err, docs) {
// we've found users in the mongo db
}));
FWIW, yep, when.js 1.0.2 (probably earlier versions, too) works in Ringo 0.8.