Skip to content

Commit 3fb1216

Browse files
committed
Fix comments
1 parent f2e1d7f commit 3fb1216

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

__tests__/assets/esm/adapter/createStreamCoalescer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { getActivityLivestreamingMetadata } from 'botframework-webchat-core';
99
* Creates a `TransformStream` that coalesces interim livestream activities.
1010
*
1111
* All activities from one network chunk arrive as a burst of microtasks.
12-
* Buffering interims until the next macrotask (`setTimeout(0)`) collapses
12+
* Buffering interims until the next macrotask (`setTimeout(32)`) collapses
1313
* the burst into a single latest-per-session activity.
1414
*
1515
* Non-interim activities (first-in-session, informative, contentless, final)
@@ -45,9 +45,6 @@ export default function createStreamCoalescer() {
4545

4646
flushScheduled = true;
4747

48-
// setTimeout(0) defers to the macrotask queue.
49-
// All stream-internal microtasks (transform calls from one network chunk)
50-
// complete before this fires, enabling effective batching.
5148
flushTimer = setTimeout(flushPending, 32);
5249
}
5350

0 commit comments

Comments
 (0)