minor cleanup
This commit is contained in:
parent
6cdbb6b4eb
commit
8c80af2630
1 changed files with 1 additions and 2 deletions
|
|
@ -4,12 +4,11 @@ import { Log } from "../util/log"
|
||||||
export namespace Scheduler {
|
export namespace Scheduler {
|
||||||
const log = Log.create({ service: "scheduler" })
|
const log = Log.create({ service: "scheduler" })
|
||||||
|
|
||||||
export type Scope = "instance" | "global"
|
|
||||||
export type Task = {
|
export type Task = {
|
||||||
id: string
|
id: string
|
||||||
interval: number
|
interval: number
|
||||||
run: () => Promise<void>
|
run: () => Promise<void>
|
||||||
scope?: Scope
|
scope?: "instance" | "global"
|
||||||
}
|
}
|
||||||
|
|
||||||
type Timer = ReturnType<typeof setInterval>
|
type Timer = ReturnType<typeof setInterval>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue