Skip to main content
method WriteStream.prototype.close
WriteStream.prototype.close(callback?: (err?: ErrnoException | null) => void): void
Deprecated

Closes writeStream. Optionally accepts a callback that will be executed once the writeStreamis closed.

Parameters

optional
callback: (err?: ErrnoException | null) => void

Return Type

void
Back to top