@hexlet/co

0.1.10 • Public • Published

js-co

github action status

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

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet (in Russian).

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i @hexlet/co

    Weekly Downloads

    2

    Version

    0.1.10

    License

    ISC

    Unpacked Size

    9.36 kB

    Total Files

    11

    Last publish

    Collaborators

    • dzencot
    • grozwalker
    • mshkv
    • mokevnin
    • corsicanec82