* 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)
| 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 |
no outgoing calls
no test coverage detected