co-wrap-all
Call co.wrap for multiple generator functions
This tiny helper allows to easily call co.wrap
for multiple generator functions.
For example:
// Beforemoduleexports = foo: co bar: co; // Aftermoduleexports = ;
Also, it is very convenient for defining asynchronous methods:
// Common * { /* ... */ } * { /* ... */ } // BeforeFooprototypebar = co;Fooprototypebaz = co; // After;