laverdet/node-fibers — Issue #51: passing arguments with run()
Author: samsaraherald
Created: 2012-02-05 07:31:46+00:00
State: open

It would be useful not only to pass something from fiber with yield(), but also to pass something back into fuber with run() like in ruby.

```javascript
require("fibers")
function f(arg) {
console.log(arg)
console.log(yield())
}
var fiber = Fiber(f)

fiber.run("this is passed as an argument to f")
fiber.run("this is what yield() will return")
```