Both every and after
This commit is contained in:
parent
a46a8c4a71
commit
7e98fdd96b
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue