laverdet/node-fibers — pull request #97 by qxfusion (2012-12-29 16:21:08+00:00)
Title: Extend Function.prototype for Fibers

Allow to use Fibers in context...

Example
```javascript
(function() {
console.log( (require("fs").readdir.toSync)(".") );
}).asFiber;
```

asFiber extension

before
```javascript
(require("fibers")(function() { /* function code */ })).run()
```
after
```javascript
(function() { /* function code */ }).asFiber
```
toSync extension

before
```javascript
(require("fibers/future").wrap(asyncFunction))(asyncArguments).wait()
```
after
```javascript
(asyncFunction.toSync)(asyncArguments)
```