composition
Compose generator and async/await middleware like koa. Allows to use both generator functions and async/await functions.
var compose = ; var stack = ; // generator functionsstack; // regular functions that return anything// but they should be promises!stack; // async/await functionsstack; // compose it into a functionvar fn = ; // this function returns a promisefn