Portfolio‎ > ‎

Timeout Scheduler (JavaScript)

Timeout Scheduler (JavaScript)

Usage

loop{
    var tmpRunnableObject = new RunnableObject();
    tmpRunnableObject.var = value;
    tmpRunnableObject.run = function(){    // Required
        // TODO: Action with this.var;
    };

    TimeoutScheduler.addJob(tmpRunnableObject, timeout);
}

Sample

Comments