Both every and after

This commit is contained in:
deadprogram 2013-10-22 23:36:31 -07:00
parent a46a8c4a71
commit 7e98fdd96b
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,9 @@ cylon = require('..')
cylon.robot
work: ->
every 1.second(), ->
Logger.info("hello, human!")
Logger.info("Hello, human!")
after 10.seconds(), ->
Logger.info "Impressive."
.start()

View File

@ -2,6 +2,7 @@ var cylon = require('..');
cylon.robot({
work: function() {
every((1).second(), function() { Logger.info("hello, human!"); });
every((1).second(), function() { Logger.info("Hello, human!"); });
after((10).seconds(), function() { Logger.info("Impressive."); });
}
}).start();