MCPcopy Index your code
hub / github.com/extrabacon/python-shell / end

Method end

index.ts:406–412  ·  view source on GitHub ↗

* Closes the stdin stream. Unless python is listening for stdin in a loop * this should cause the process to finish its work and close. * @returns {PythonShell} The same instance for chaining calls

(callback: (err: PythonShellError, exitCode: number, exitSignal: string) => any)

Source from the content-addressed store, hash-verified

404 * @returns {PythonShell} The same instance for chaining calls
405 */
406 end(callback: (err: PythonShellError, exitCode: number, exitSignal: string) => any) {
407 if (this.childProcess.stdin) {
408 this.childProcess.stdin.end();
409 }
410 this._endCallback = callback;
411 return this;
412 };
413
414 /**
415 * Sends a kill signal to the process

Callers 2

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected