Skip to content

Commit eecb612

Browse files
Update packages/utils/src/lib/performance-observer.ts
Co-authored-by: Hanna Skryl <80118140+hanna-skryl@users.noreply.github.com>
1 parent 343cb56 commit eecb612

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/utils/src/lib/performance-observer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,8 @@ export class PerformanceObserverSink<T> implements Observer, Buffered {
334334
* Flushes all queued performance entries to the sink.
335335
*
336336
* Writes all currently queued encoded performance entries to the configured sink.
337-
* If the sink is closed during flush, the queue is cleared without writing.
337+
* If the sink is closed, flush is a no-op and items stay in the queue until reopened.
338338
* The queue is always cleared after flush attempt, regardless of success or failure.
339-
* If the sink is closed flush is a no-op and the items stay in the queue until reopened.
340339
*/
341340
flush(): void {
342341
if (this.#queue.length === 0) {

0 commit comments

Comments
 (0)