chore: type Provider.list() as Record<ProviderID, Info>, delete dead code (#18123)

This commit is contained in:
Kit Langton
2026-03-18 19:43:12 -04:00
committed by GitHub
parent 2e4326bb36
commit ae15341ffe
7 changed files with 122 additions and 139 deletions
-20
View File
@@ -1,20 +0,0 @@
import { Log } from "./log"
export namespace EventLoop {
export async function wait() {
return new Promise<void>((resolve) => {
const check = () => {
const active = [...(process as any)._getActiveHandles(), ...(process as any)._getActiveRequests()]
Log.Default.info("eventloop", {
active,
})
if ((process as any)._getActiveHandles().length === 0 && (process as any)._getActiveRequests().length === 0) {
resolve()
} else {
setImmediate(check)
}
}
check()
})
}
}