Skip to content

Commit 4579bde

Browse files
committed
Cleanup
1 parent 1ec0378 commit 4579bde

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/lib/utils/resourceAvailabilityUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { setTimeout } from 'node:timers/promises'
12
import type { CommonLogger } from '@lokalise/node-core'
23
import type { ResourceAvailabilityConfig } from '../types/queueOptionsTypes.ts'
34

@@ -150,7 +151,7 @@ export async function waitForResource<T>(options: WaitForResourceOptions<T>): Pr
150151
}
151152

152153
// Wait before next attempt
153-
await new Promise((resolve) => setTimeout(resolve, pollingIntervalMs))
154+
await setTimeout(pollingIntervalMs)
154155
}
155156
}
156157

0 commit comments

Comments
 (0)