MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / startOutputLoop

Method startOutputLoop

daemon/src/entity/instance/instance.ts:598–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

596 }
597
598 private startOutputLoop() {
599 this.outputBuffer = new CircularBuffer<string>(
600 globalConfiguration.config.outputBufferSize || 256
601 );
602 this.outputLoopTask = setInterval(() => {
603 this.flushOutputBuffer();
604 }, 50);
605 }
606
607 private stopOutputLoop() {
608 if (this.outputLoopTask) clearInterval(this.outputLoopTask);

Callers 1

startedMethod · 0.95

Calls 1

flushOutputBufferMethod · 0.95

Tested by

no test coverage detected