co routines using generators
npm install co-tcharsupport thenable, promises, generators and iterators.
``js
const cotchar = require('co-tchar')
cotchar(function*(){
const res = yield Promise.resolve(1)
assert(res === 1)
const {error} = yield Promise.reject(new Error('testing'))
assert(error.message === 'testing')
const {error: error2} = yield [1,Promise.resolve(), Promise.reject()]
assert(error2)
})
``