mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-29 13:38:46 +00:00
20 lines
335 B
TypeScript
20 lines
335 B
TypeScript
|
import * as wtfnode from "wtfnode"
|
||
|
|
||
|
let active = false
|
||
|
|
||
|
export function setup(): void {
|
||
|
if (active) {
|
||
|
return
|
||
|
}
|
||
|
active = true
|
||
|
|
||
|
const interval = 5000
|
||
|
const wtfnodeDump = () => {
|
||
|
wtfnode.dump()
|
||
|
const t = setTimeout(wtfnodeDump, interval)
|
||
|
t.unref()
|
||
|
}
|
||
|
const t = setTimeout(wtfnodeDump, interval)
|
||
|
t.unref()
|
||
|
}
|