|
|
|
|
|
by molsson
612 days ago
|
|
process.stdout._handle.setBlocking(true) ...is a bit brutal but works. Draining the stream before exiting also kind of works but there are cases where drain will just permanently block. async function drain(stream) {
return new Promise((resolve) => stream.on('drain', resolve))
} |
|