Skip to content

Instantly share code, notes, and snippets.

@thejh
Created April 9, 2011 19:08
Show Gist options
  • Save thejh/911680 to your computer and use it in GitHub Desktop.
Save thejh/911680 to your computer and use it in GitHub Desktop.
# How do I add the second params to a method args after the first one being a function?
timeout = setTimeout(function() {
sys.puts('Timeout')
tweetEmitter.removeListener(listener)
}, 10000)
timeout = setTimeout ->
sys.puts 'Timeout'
tweetEmitter.removeListener listener
, 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment