SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2005
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Do timers stop all code?

    Does the setTimeout() function pause all code? Or will it continue running the code underneath it even before the timer has completed?

    Thanks,
    e39m5

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by e39m5 View Post
    Does the setTimeout() function pause all code?
    Nah, they just sit around waiting for their time to go.

    Quote Originally Posted by e39m5 View Post
    Or will it continue running the code underneath it even before the timer has completed?
    Yes that's right, it will.


Bookmarks

Posting Permissions

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