mirror of
https://github.com/coder/code-server.git
synced 2024-11-30 11:46:20 +03:00
d7f06975a6
See my comments at https://github.com/cdr/code-server/pull/2563#issuecomment-763394741
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()
|
|
}
|