View Full Version : how to sleep thread in extjs 4.0.7

29 Oct 2013, 10:21 AM
hi every one,

i have a function in i want to execute some line after that the worker thread sleep some time after that execute next line .
please suggest me how to do this type of things in extjs .


31 Oct 2013, 1:11 PM
You can use:

var myTimer = setTimeout(function(){
// function will execute in 1 sec

... and use clearTimeout(mytimer) to reset