Skip to content

Instantly share code, notes, and snippets.

@tj
Forked from ry/maybe_better_promise.js
Created January 30, 2010 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tj/290767 to your computer and use it in GitHub Desktop.
Save tj/290767 to your computer and use it in GitHub Desktop.
posix.cat('config.json', function(error, config) {
sys.puts(config);
});
posix.cat('config.json')(function(error, config) {
sys.puts(config);
});
posix.cat('config.json').addCallback(function(error, config) {
sys.puts(config);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment