@hexlet/co
v0.1.10
Published
[![github action status](https://github.com/hexlet-components/js-co/workflows/Node%20CI/badge.svg)](https://github.com/hexlet-components/js-co/actions)
Downloads
5
Keywords
Readme
js-co
Install
npm install @hexlet/co
Usage 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);
});
// => true
For 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).