MCPcopy Create free account
hub / github.com/GCWing/BitFun / flushNow

Method flushNow

src/web-ui/src/flow_chat/services/EventBatcher.ts:198–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 }
197
198 flushNow(): void {
199 if (this.frameId !== null) {
200 cancelAnimationFrame(this.frameId);
201 this.frameId = null;
202 }
203 if (this.timeoutId !== null) {
204 clearTimeout(this.timeoutId);
205 this.timeoutId = null;
206 }
207 this.scheduled = false;
208 this.flush();
209 }
210
211 getBufferSize(): number {
212 return this.buffer.size;

Callers 3

destroyMethod · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected