Skip to content

Instantly share code, notes, and snippets.

@Maciek416
Created May 13, 2013 13:57
Show Gist options
  • Save Maciek416/5568482 to your computer and use it in GitHub Desktop.
Save Maciek416/5568482 to your computer and use it in GitHub Desktop.
# classic async style
getData: (input, done) ->
output = Math.sin(input) * Math.cos(input)
done(output)
# async return through callback sugar
getData~ (input) ->
Math.sin(input) * Math.cos(input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment