blob: a7e1e61f39b25a910b67ca73a45bb40a96d279b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import Astal from "gi://AstalIO"
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?.())
}
|