timer.resumeAll()

Type Function
Library timer.*
Revision Release 2020.3606
Keywords timer, resume, pause
See also timer.resume()

Overview

Resumes all timers that were paused with timer.pause().

Note: Using timer.resumeAll() requires Solar2D 2020.3611 or a newer build.

Syntax

timer.resumeAll()

Example

local function listener( event )
    print( "listener called" )
end
 
timer1 = timer.performWithDelay( 2000, listener )  -- wait 2 seconds
timer2 = timer.performWithDelay( 3000, listener )  -- wait 3 seconds

-- sometime later...
timer.pauseAll()

-- sometime later...
timer.resumeAll()