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

Method destroy

src/web-ui/src/flow_chat/services/FlowChatManager.ts:376–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374 }
375
376 public destroy(): void {
377 if (this.disposed) {
378 return;
379 }
380
381 this.context.eventBatcher.flushNow();
382 this.disposed = true;
383 this.initializationRequests.clear();
384 this.latestInitializationRequestKey = null;
385 this.cleanupEventListeners();
386 this.context.eventBatcher.destroy();
387 }
388
389 private processBatchedEvents(events: Array<{ key: string; payload: any }>): void {
390 if (this.disposed) {

Callers 1

disposeInstanceMethod · 0.45

Calls 3

cleanupEventListenersMethod · 0.95
flushNowMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected