Search the reference...
/
method
Close the file descriptor. This also flushes the internal buffer.
Optional error to associate with the close operation
Number of bytes written or a Promise resolving to the number of bytes
The cause of the error.