coback
Occasionally you find yourself in a position where thunks don't quite work, such as:
var obj = new FakeObject(callback);
obj.doSomething();
obj.execute();
Coback solves that by creating a callback which can be passed to traditional-style functions, but still yielded on at a later time.
var coback = require('coback');
var callback = coback();
var obj = new FakeObject(callback);
obj.doSomething();
obj.execute();
var result = yield callback.result;
Built to work with co but likely works with other frameworks.
Install
npm install coback