Skip to content

Commit e702e59

Browse files
committed
convert SyncPromise.all
1 parent 0805563 commit e702e59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/promisebuffer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SentryError } from './error';
2-
import { SyncPromise, syncPromiseReject } from './syncpromise';
2+
import { SyncPromise, syncPromiseAll, syncPromiseReject } from './syncpromise';
33

44
/** A simple queue that holds promises. */
55
export class PromiseBuffer<T> {
@@ -85,7 +85,7 @@ export class PromiseBuffer<T> {
8585
}, timeout);
8686

8787
// if all promises resolve in time, cancel the timer and resolve to `true`
88-
void SyncPromise.all(this._buffer)
88+
void syncPromiseAll(this._buffer)
8989
.then(() => {
9090
clearTimeout(capturedSetTimeout);
9191
resolve(true);

0 commit comments

Comments
 (0)