Skip to content

mssalvo/JPolling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JPolling

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

Execute timed functions

Demo

Page Example JPolling Page Demo.

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..")       
            }
	    

About

JS polling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published