Created
February 29, 2012 21:13
-
-
Save jcolebrand/1944408 to your computer and use it in GitHub Desktop.
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
var readFromFilesystem = function(file, resp){ | |
wait(function(){ | |
resp.writeHead(200, {"Content-Type":"text/html"}); | |
resp.write("<h1>ASD</h1>"); | |
resp.end(); | |
}); | |
console.log("out..."); | |
} | |
var wait = function(callback){ | |
setTimeout(function(){ callback.call() }, 10000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment