blob: 4e28ad04ae1a028dadd98dca28b669d358bd6224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { Astal } from "./imports.js"
export function interval(interval: number, callback?: () => void) {
return Astal.Time.interval(interval, () => void callback?.())
}
export function timeout(timeout: number, callback?: () => void) {
return Astal.Time.timeout(timeout, () => void callback?.())
}
export function idle(callback?: () => void) {
return Astal.Time.idle(() => void callback?.())
}
|