Instructions for the fs.closeSync method in node.js
- 2020-05-07 19:13:26
- OfStack
method description:
Synchronized version of close().
syntax:
fs.closeSync(fd)
Since this method belongs to the fs module, the fs module (var fs= require(" fs ")) needs to be introduced before use.
receive parameter:
fd
source code:
fs.closeSync = function(fd) {
return binding.close(fd);
};