MCPcopy Create free account
hub / github.com/material-shell/material-shell / runInternal

Method runInternal

src/utils/async.ts:82–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 private async runInternal() {
83 assert(
84 !this.running,
85 'Expected all other invocations to have finished'
86 );
87 this.running = true;
88 this.timeoutId = undefined;
89 try {
90 await this.f();
91 } finally {
92 this.running = false;
93 if (this.runAgain) {
94 this.runAgain = false;
95 this.schedule();
96 }
97 }
98 }
99}

Callers 1

scheduleMethod · 0.95

Calls 2

scheduleMethod · 0.95
assertFunction · 0.90

Tested by

no test coverage detected