Created
March 19, 2014 13:54
-
-
Save acidsound/9642103 to your computer and use it in GitHub Desktop.
fuckNode.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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