Skip to content

Instantly share code, notes, and snippets.

@mrjjwright
Created April 3, 2010 20:29
Show Gist options
  • Select an option

  • Save mrjjwright/354833 to your computer and use it in GitHub Desktop.

Select an option

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