Skip to content

Instantly share code, notes, and snippets.

@michaelavila
Created November 14, 2013 17:07
Show Gist options
  • Save michaelavila/7470443 to your computer and use it in GitHub Desktop.
Save michaelavila/7470443 to your computer and use it in GitHub Desktop.
orc = require('./src/orc.coffee').orc
sequence1 = ->
orc.sequence(
->
setTimeout orc.waitFor(), 1000
->
console.log 'done with sequence 1'
)
sequence2 = ->
orc.sequence(
->
setTimeout orc.waitFor(), 2000
->
console.log 'done with sequence 2'
)
orc.sequence sequence1, sequence2, ->
console.log 'done with both sequences'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment