Commit e0d3b758 authored by Robert Nagy's avatar Robert Nagy Committed by Rich Trott
Browse files

stream: improve Writable.destroy performance

Avoid nextTick if there are no pending callbacks.

PR-URL: https://github.com/nodejs/node/pull/35067


Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarRicky Zhou <0x19951125@gmail.com>
parent e06037ab
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment