Results 1 to 2 of 2

Thread: how to sleep thread in extjs 4.0.7

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Location
    INDIA
    Posts
    51

    Default how to sleep thread in extjs 4.0.7

    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 .

    thanks,

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    You can use:

    Code:
    var myTimer = setTimeout(function(){
     // function will execute in 1 sec
    },1000);
    ... and use clearTimeout(mytimer) to reset

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •