doc: avoid memory leaks when writable.write() return false
The doc specified that writable.write() was advisory only. However, ignoring that value might lead to memory leaks. This PR specifies that behavior. Moreover, it adds an example on how to listen for the 'drain' event correctly.
Checklist
-
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc, stream
cc @nodejs/streams @binki @Tanuja-Sawant @silverwind
nodejs@f347dad