tinyco

Simple coroutines using generators

Showing:

Popularity

Downloads/wk

5

GitHub Stars

1

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

tinyco

Build Status

Simple coroutines using generators


Installing

npm install --save tinyco

Example

'use strict';

const c = require('tinyco');

function asyncAdd( a, b ) {
  return new Promise( resolve => setTimeout( () => resolve( a + b ), 100 ) );
}

c(function*() {
  let val = yield asyncAdd( 1, 2 );
  console.log( val );
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial