0.1.7 • Published 8 years ago
hexlet-co v0.1.7
js-co
Install
npm install @hexlet/coUsage example
import co from '@hexlet/co';
co(function* () {
const result = yield Promise.resolve(true);
return result;
}).then(value => {
console.log(value);
}, err => {
console.error(err.stack);
});
// => trueFor more information, see the Full Documentation
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet (in Russian).
