MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / done

Method done

lib/code-caller.js:195–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 }
194
195 done() {
196 debug(`enter done(), state: ${String(this.state)}, uuid: ${this.uuid}`);
197 this._checkState([CREATED, WAITING, EXITING, EXITED]);
198
199 if (this.state == CREATED) {
200 this.state = EXITED;
201 } else if (this.state == WAITING) {
202 this.child.kill();
203 this.state = EXITING;
204 }
205 this._checkState();
206 debug(`exit done(), state: ${String(this.state)}, uuid: ${this.uuid}`);
207 }
208
209 ensureChild() {
210 debug(`enter ensureChild(), state: ${String(this.state)}, uuid: ${this.uuid}`);

Callers 6

jquery.jsFile · 0.80
AnimationFunction · 0.80
defaultPrefilterFunction · 0.80
jquery-ui.jsFile · 0.80
testFinishedFunction · 0.80
returnPythonCallerFunction · 0.80

Calls 2

_checkStateMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected