mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
chore: format code
This commit is contained in:
@@ -4,17 +4,11 @@ export namespace EventLoop {
|
||||
export async function wait() {
|
||||
return new Promise<void>((resolve) => {
|
||||
const check = () => {
|
||||
const active = [
|
||||
...(process as any)._getActiveHandles(),
|
||||
...(process as any)._getActiveRequests(),
|
||||
]
|
||||
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
|
||||
) {
|
||||
if ((process as any)._getActiveHandles().length === 0 && (process as any)._getActiveRequests().length === 0) {
|
||||
resolve()
|
||||
} else {
|
||||
setImmediate(check)
|
||||
|
||||
Reference in New Issue
Block a user