From 67dae03d597586537ab99e88fd56ef44d64bdccd Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 6 Aug 2019 13:41:12 +0200 Subject: [PATCH 1/2] stream: writableCorked --- doc/api/stream.md | 11 ++++++++++ lib/_http_outgoing.js | 11 +++------- lib/_stream_writable.js | 10 +++++++++ .../test-stream-writable-properties.js | 22 +++++++++++++++++++ 4 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 test/parallel/test-stream-writable-properties.js diff --git a/doc/api/stream.md b/doc/api/stream.md index ccdb7e4180bc32..61aeeee583a3a8 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -505,6 +505,16 @@ Is `true` after [`writable.end()`][] has been called. This property does not indicate whether the data has been flushed, for this use [`writable.writableFinished`][] instead. +##### writable.writableCorked + + +* {Integer} + +Number of times [`writable.uncork()`][stream-uncork] needs to be +called in order to fully uncork the stream. + ##### writable.writableFinished -* {Integer} +* {integer} Number of times [`writable.uncork()`][stream-uncork] needs to be called in order to fully uncork the stream.