Skip to content

Commit 35ace69

Browse files
committed
do not unref the 1ms delay
1 parent 917fc69 commit 35ace69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
11521152
let ticked = 0;
11531153

11541154
while (!timeout || ticked < timeout) {
1155-
await new Promise(resolve => safeUnref(setTimeout(resolve, 1)));
1155+
await new Promise(resolve => setTimeout(resolve, 1));
11561156

11571157
if (!this._numProcessing) {
11581158
return true;

0 commit comments

Comments
 (0)