How many seconds to wait
Optional
clock: (() => number) = _clockA function that returns the elapsed application
time in seconds. Defaults to () => performance.now() / 1000
const schedule = new Schedule()
schedule.add(function* () {
console.log("Hello")
yield* seconds(4)
console.log("World")
})
setInterval(schedule.tick, 100)
// prints out Hello, waits four seconds, prints out World
Wait for a number of seconds.