lib/inq.js
/**
 * TODO: (fn[, ctx][, done])
 *
 * Accepts a generator function and wraps it into an InqPromise object
 * that will be resolved if the iteration has been finished or an error occurs.
 *
 * @param fn {function()} The generator function to iterate on.
 * @param [done] {function(err,res)} An optional callback that will be called immediately if the promise has been resolved.
 * @returns {InqPromise}
 */
(fn[, ctx][, done])
Accepts a generator function and wraps it into an InqPromise object
that will be resolved if the iteration has been finished or an error occurs.

@param fn {function()} The generator function to iterate on.
@param [done] {function(err,res)} An optional callback that will be called immediately if the promise has been resolved.
( fn [ ctx ] [ done ] ) Accepts a generator function and wraps it into an InqPromise object that will be resolved if the iteration has been finished or an error occurs . @param fn { function () } The generator function to iterate on . @param [ done ] { function ( err res ) } An optional callback that will be called immediately if the promise has been resolved .
function inq(fn, done) {
    assert(fn instanceof Function, 'Invalid argument provided for $(fn[, done])')
    var instance = new InqPromise(fn)
    if(arguments.length > 1) {
        assert(done instanceof Function, 'Invalid arguments provided for $(fn[, done])')
        instance.done(done)
    }
    return instance
}
function inq ( fn , done ) { assert ( fn instanceof Function , 'Invalid argument provided for $(fn[, done])' ) var instance = new InqPromise ( fn ) if ( arguments . length > 1 ) { assert ( done instanceof Function , 'Invalid arguments provided for $(fn[, done])' ) instance . done ( done ) } return instance }
TODO: (fn[, ctx][, done])
 Accepts a generator function and wraps it into an InqPromise object
 that will be resolved if the iteration has been finished or an error occurs.
TODO : ( fn [ ctx ] [ done ] ) Accepts a generator function and wraps it into an InqPromise object that will be resolved if the iteration has been finished or an error occurs .
/*, this*/