Skip to content

Commit 0897782

Browse files
ronagTrott
authored andcommitted
doc: writableFinished is true before 'finish'
PR-URL: nodejs#28811 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 1ddd46f commit 0897782

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/api/http.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,9 @@ added: v12.7.0
14801480

14811481
* {boolean}
14821482

1483-
Is `true` if all data has been flushed to the underlying system.
1483+
Is `true` if all data has been flushed to the underlying system, immediately
1484+
before the [`'finish'`][] event is emitted.
1485+
14841486

14851487
### response.writeContinue()
14861488
<!-- YAML
@@ -2198,6 +2200,7 @@ not abort the request or do anything besides add a `'timeout'` event.
21982200
[`agent.createConnection()`]: #http_agent_createconnection_options_callback
21992201
[`agent.getName()`]: #http_agent_getname_options
22002202
[`destroy()`]: #http_agent_destroy
2203+
[`'finish'`]: #http_event_finish
22012204
[`getHeader(name)`]: #http_request_getheader_name
22022205
[`http.Agent`]: #http_class_http_agent
22032206
[`http.ClientRequest`]: #http_class_http_clientrequest

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ added: v12.6.0
496496

497497
* {boolean}
498498

499-
Is `true` if after the [`'finish'`][] event has been emitted.
499+
Is set to `true` immediately before the [`'finish'`][] event is emitted.
500500

501501
##### writable.writableHighWaterMark
502502
<!-- YAML

0 commit comments

Comments
 (0)