after = (ms, cb) -> setTimeout cb, ms
every = (ms, cb) -> setInterval cb, ms
Now we can say:
after 500, -> # do something...
Instead of:
setTimeout ->
# do something..
, 500
after = (ms, cb) -> setTimeout cb, ms
every = (ms, cb) -> setInterval cb, ms
Now we can say:
after 500, -> # do something...
Instead of:
setTimeout ->
# do something..
, 500