Skip to content

Instantly share code, notes, and snippets.

@mrjjwright
Created April 3, 2010 20:29
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 mrjjwright/354833 to your computer and use it in GitHub Desktop.
Save mrjjwright/354833 to your computer and use it in GitHub Desktop.
foo: (cb) ->
arr: [1, 2, 3]
do_foo: (i) ->
async_call ->
if i-- then do_foo(i)
else cb()
foo(arr.length-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment