node icon indicating copy to clipboard operation
node copied to clipboard

doc: add missing options.signal to readlinePromises.createInterface()

Open hkleungai opened this issue 4 months ago • 0 comments

From the source code, readlinePromises.createInterface() calls new Interface() imported from internal/readline/interface, which works the same as the non-promise version. If non-promise version accepts options.signal, it should also work for readlinePromises.createInterface(). Hence this information need to be indicated in the documentation.

Refs: https://github.com/nodejs/node/blob/main/lib/readline/promises.js

hkleungai avatar Oct 19 '24 08:10 hkleungai