readline: add support for the AbortController to the question method
In some cases a question asked needs to be canceled. For instance it might be desirable to cancel a question when a user presses ctrl+c and triggers the SIGINT event. Also an initial empty string was set for this.line since the cursor methods fail if line is not initialized. Added custom promisify support to the question method. PR-URL: https://github.com/nodejs/node/pull/33676 Reviewed-By:Benjamin Gruenbaum <benjamingr@gmail.com>
parent
2242cbb2
Please register or sign in to comment