The Timer API lets you schedule functions to be executed after a given time.

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
Show Uno properties and methods

Interface of TimerModule

create(func, time, repeat) 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); <a href="../../../fuse/reactive/fusejs/timermodule/create_bbef95e2.html" class="table-of-contents-item-has-more" title="There is more information available for this entry"><i class="fa fa-ellipsis-h"></i></a>

Inherited from NativeModule

Inherited from Module

GetFile : FileSource uno

Returns the file source that will be watched by the Context for changes in Fuse preview. Override in subclasses and return correct file source to support live updates in Fuse preview.

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces