You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/utils/src/promisebuffer.ts
+2-13Lines changed: 2 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,6 @@
1
1
import{SentryError}from'./error';
2
-
import{isThenable}from'./is';
3
2
import{SyncPromise}from'./syncpromise';
4
3
5
-
typeTaskProducer<T>=()=>PromiseLike<T>;
6
-
7
4
/** A simple queue that holds promises. */
8
5
exportclassPromiseBuffer<T>{
9
6
/** Internal set of queued Promises */
@@ -24,19 +21,11 @@ export class PromiseBuffer<T> {
24
21
* @param taskProducer A function producing any PromiseLike<T>; In previous versions this used to be `@param task: PromiseLike<T>`, however, Promises were instantly created on the call-site, making them fall through the buffer limit.
0 commit comments