JPolling

Whenever it is necessary to perform a timed function JPooling and a great help in every need

Execute timed functions

Controll single process

Example start

JPolling.get("process1").start(300, myBeforefunction, 120000, mySecondfunction);

Example stop

JPolling.get('process1').stop()

Example play

JPolling.get('process1').play()

Example restart

JPolling.get('process1').restart()

Controll all process

Example stopAll

JPolling.stopAll()

Example playAll

JPolling.playAll()

Example restartAll

JPolling.restartAll()

Example

JPolling.get("process1").start(300, myBeforefunction, 120000, mySecondfunction);
     
      
 function myBeforefunction(ctx){
   console.log("progress "+ctx.progress)
           }
        
function mySecondfunction(ctx){
        ctx.stop();     
    console.log("STOPPPPPP!!!! Test JPolling..")       
            }