Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Created November 19, 2013 05:17
Show Gist options
  • Save mohayonao/7540677 to your computer and use it in GitHub Desktop.
Save mohayonao/7540677 to your computer and use it in GitHub Desktop.
# src
a = for i in list by 2
console.log i
@wait 1
i
console.log a
# replaced
@wait a = Task.ForLoop list, 2, (i)->
console.log i
@wait 1
i
.play()
a = a.valueOf()
console.log a
# src
a = while a < b
console.log a
@wait 1
a += 1
a
console.log a
# replaced
@wait a = Task.While (->a < b), ->
console.log a
@wait 1
a += 1
a
.play()
a = a.valueOf()
console.log a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment