Proof that we don't need async/await to get async generators
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
engine.js
package.json
test.js

README.md

Async Generators

Proof that async generators dont need async/await

example

var async   = require('./engine')
var Promise = require('bluebird');

var tenNumbers = async(function* tenNumbers() {
    for (var k = 0; k < 10; ++k) {
        yield async.await(Promise.delay(100));
        console.log(k);
        yield async.yield(k);
    }
})

async.iterate(tenNumbers(), val => console.log("Iterating", val));

license

public domain / MIT