TimerModule.create(func, time, repeat) Method (JS)
Schedules func
to be called after time
milliseconds.
var Timer = require("FuseJS/Timer");
Timer.create(function() {
console.log("This will run once, after 3 seconds");
}, 3000, false);
Timer.create(function() {
console.log("This will run every 10 seconds until forever");
}, 10000, true);
Location
- Namespace
- Fuse.Reactive.FuseJS
- Package
- Fuse.Scripting.JavaScript 2.9.1
Returns
number
The ID of the timer, which can be used later to delete it.