Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "cooperator", | ||
"description": "Like co but lets you also output data", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"author": "CoderPuppy", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/CoderPuppy/cooperator.git", |
@@ -30,5 +30,5 @@ # Cooperator | ||
- `co.start()` - Start it | ||
- `co.on('data', (data) => {})` - An event emitted when the generator yields a value that can't be thunkifyered | ||
- `co.on('done', (res) => {})` - An event emitted when the generator returns | ||
- `co.on('error', (err) => {})` - An event emitted when the generator throws an error | ||
- `co.on('data', cb(data))` - An event emitted when the generator yields a value that can't be thunkifyered | ||
- `co.on('done', cb(res))` - An event emitted when the generator returns | ||
- `co.on('error', cb(err))` - An event emitted when the generator throws an error | ||
- `co.pullStream` - A pull-stream for the data |
4401