JPolling
Whenever it is necessary to perform a timed function JPooling and a great help in every need
Whenever it is necessary to perform a timed function JPooling and a great help in every need
Execute timed functions
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()
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..")       
            }