wait(n: number, action?: ()=>void): TimerController

Run the function after n seconds.

paramn- The time to wait in seconds.

paramaction- The function to run.

// 3 seconds until explosion! Runnn!
wait(3, () => {
    explode()
})

// wait() returns a PromiseLike that can be used with await
await wait(1)

returnsA timer controller.

sincev2000.0