Skip to content

Instantly share code, notes, and snippets.

@acidsound
Created March 19, 2014 13:54
Show Gist options
  • Save acidsound/9642103 to your computer and use it in GitHub Desktop.
Save acidsound/9642103 to your computer and use it in GitHub Desktop.
fuckNode.js
Future = require('fibers/future');
fiber = require('fibers');
fiber(function() { /* Meteor는 요게 발라져 있음 */
testFuture = function() {
var fut = new Future();
setTimeout(function() {
fut.return(Date.now());
}, 1000);
return fut.wait();
}
console.log(testFuture());
}).run(); /* 요거요거 요놈까지 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment