doc: add warning to readline's close() method
When close()
is called on a readline
instance, it is possible that data is already buffered, and will trigger 'line'
events. This commit adds a warning to the corresponding docs. Note that
a similar warning already exists for the pause()
method.
Fixes: https://github.com/nodejs/node/issues/22615
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines