What is Stdout flush in NodeJS?
For example
sys.stdout.write(“hello I am Writing something”);
sys.stdout.flush();
Stdout flush is used for checking writable stream is “write” successful or not.
“sys.stdout.flush()” gives result true if flush was successful and false if kernel buffer is full and it can’t write yet.