Lines Matching defs:close
90 close: (fd, cb) => {
92 PromisePrototypeThen(handle.close(),
113 function close(stream, err, cb) {
117 stream[kFs].close(stream.fd, (er) => {
134 // When fd is a FileHandle we can listen for 'close' events
142 options.fd.on('close', FunctionPrototypeBind(stream.close, stream));
184 validateFunction(this[kFs].close, 'options.fs.close');
253 // Tell ._destroy() that it's safe to close the fd now.
285 // Usually for async IO it is safe to close a file descriptor
289 // to close while used in a pending read or write operation. Wait for
292 this.once(kIoDone, (er) => close(this, err || er, cb));
294 close(this, err, cb);
298 ReadStream.prototype.close = function(cb) {
350 validateFunction(this[kFs].close, 'options.fs.close');
460 // Tell ._destroy() that it's safe to close the fd now.
488 // Tell ._destroy() that it's safe to close the fd now.
501 // Usually for async IO it is safe to close a file descriptor
505 // to close while used in a pending read or write operation. Wait for
508 this.once(kIoDone, (er) => close(this, err || er, cb));
510 close(this, err, cb);
514 WriteStream.prototype.close = function(cb) {
520 this.on('close', cb);