Comparing version 0.2.1 to 0.2.2
@@ -0,0 +0,0 @@ var Y = require('..'); |
@@ -0,0 +0,0 @@ var fs = require('fs'); |
@@ -0,0 +0,0 @@ var Y = require('..'); |
@@ -0,0 +0,0 @@ var fs = require('fs'); |
@@ -0,0 +0,0 @@ var Y = require('..'); |
@@ -0,0 +0,0 @@ var Y = require('..'); |
@@ -0,0 +0,0 @@ var Y = require('..'); |
@@ -0,0 +0,0 @@ var q = require('q'); |
@@ -0,0 +0,0 @@ var fs = require('fs'); |
@@ -0,0 +0,0 @@ var Y = require('..'); |
@@ -24,3 +24,3 @@ (function (factory) { | ||
Y.VERSION = '0.2.1'; | ||
Y.VERSION = '0.2.2'; | ||
@@ -27,0 +27,0 @@ |
{ | ||
"name": "yielding", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Easy generators", | ||
@@ -5,0 +5,0 @@ "main": "./lib/yielding.js", |
@@ -79,3 +79,3 @@ yielding | ||
``` | ||
###Error handling | ||
###Errors handling | ||
```js | ||
@@ -91,2 +91,8 @@ Y(function* () { | ||
``` | ||
###SUSPEND-style | ||
```js | ||
Y(function *async() { | ||
var content = yield fs.readFile('test/example.txt', 'utf8', async.resume); | ||
})(); | ||
``` | ||
[See more examples](https://github.com/mikach/yielding/tree/master/examples) |
@@ -0,0 +0,0 @@ var Y = require('..'); |
97
15312