We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec0378 commit 4579bdeCopy full SHA for 4579bde
1 file changed
packages/core/lib/utils/resourceAvailabilityUtils.ts
@@ -1,3 +1,4 @@
1
+import { setTimeout } from 'node:timers/promises'
2
import type { CommonLogger } from '@lokalise/node-core'
3
import type { ResourceAvailabilityConfig } from '../types/queueOptionsTypes.ts'
4
@@ -150,7 +151,7 @@ export async function waitForResource<T>(options: WaitForResourceOptions<T>): Pr
150
151
}
152
153
// Wait before next attempt
- await new Promise((resolve) => setTimeout(resolve, pollingIntervalMs))
154
+ await setTimeout(pollingIntervalMs)
155
156
157
0 commit comments