Skip to content

Instantly share code, notes, and snippets.

@refractalize
Created September 24, 2012 21:37
Show Gist options
  • Save refractalize/3778560 to your computer and use it in GitHub Desktop.
Save refractalize/3778560 to your computer and use it in GitHub Desktop.
Async operator works in pogo REPL
zap ~ λ pogo
> fs = require 'fs', nil
undefined
> fs.read file! 'stuff.txt' 'utf-8'
Error: ENOENT, open 'stuff.txt'
> fs.write file! 'stuff.txt' 'contents of stuff.txt'
undefined
> fs.read file! 'stuff.txt' 'utf-8'
'contents of stuff.txt'
> yay!
ReferenceError: yay is not defined
@refractalize
Copy link
Author

Will be coming out soon in pogo version 0.0.2, or if you can't wait, checkout the async branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment