setInterval() alternative built with async functions in mind

usage:

const interval = new AsyncInterval(async (signal) => {
await fetch('https://example.com/ping', { signal })
}, 60_000)
interval.start()
onAppClose(() => interval.stop())

errors are ignored by default, but you can add a handler via onError method

Constructors

Methods

Constructors

Methods