Deletes/unschedules a running timer.

var Timer = require("FuseJS/Timer");

var callCount = 0;

var timerId = Timer.create(function() {
    console.log("This will happen 3 times.");

    callCount++;
    if(callCount >= 3) {
        Timer.destroy(timerId);
    }
}, 2000, true);

Location

Namespace
Fuse.Reactive.FuseJS
Package
Fuse.Scripting.JavaScript 2.4.0