syncho
syncho copied to clipboard
Fast and lean abstraction for node Fibers. Easily run asynchronous functions synchronously.
When using .async() to turn a sync function in to an async one, the return function from .async() does not allow a this arg to be applied, because the cxt...
Working example using 'sync': ``` coffeescript request = require('request') sync = require('sync') sync () -> [req, res] = request.sync(request, {}) ``` Working example using 'syncho': ``` coffeescript request = require('request')...
Perhaps something like: https://github.com/laverdet/node-fibers/blob/master/future.js#L195 would help?