MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _process

Method _process

src/server/web/public/terminal.js:3652–3660  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

3650 this._idleCallback || (this._idleCallback = this._requestCallback(this._process.bind(this)));
3651 }
3652 _process(e3) {
3653 this._idleCallback = void 0;
3654 let t3 = 0, i3 = 0, s3 = e3.timeRemaining(), r2 = 0;
3655 for (; this._i < this._tasks.length; ) {
3656 if (t3 = Date.now(), this._tasks[this._i]() || this._i++, t3 = Math.max(1, Date.now() - t3), i3 = Math.max(t3, i3), r2 = e3.timeRemaining(), 1.5 * i3 > r2) return s3 - t3 < -20 && console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s3 - t3))}ms`), void this._start();
3657 s3 = r2;
3658 }
3659 this.clear();
3660 }
3661 }
3662 class n extends r {
3663 _requestCallback(e3) {

Callers

nothing calls this directly

Calls 4

_startMethod · 0.95
clearMethod · 0.95
maxMethod · 0.80
warnMethod · 0.45

Tested by

no test coverage detected