MCPcopy Index your code
hub / github.com/nodejs/node / handleFdClose

Function handleFdClose

lib/internal/fs/promises.js:1079–1090  ·  view source on GitHub ↗
(fileOpPromise, closeFunc)

Source from the content-addressed store, hash-verified

1077}
1078
1079async function handleFdClose(fileOpPromise, closeFunc) {
1080 return PromisePrototypeThen(
1081 fileOpPromise,
1082 (result) => PromisePrototypeThen(closeFunc(), () => result),
1083 (opError) =>
1084 PromisePrototypeThen(
1085 closeFunc(),
1086 () => PromiseReject(opError),
1087 (closeError) => PromiseReject(aggregateTwoErrors(closeError, opError)),
1088 ),
1089 );
1090}
1091
1092async function handleFdSync(fileOpPromise, handle) {
1093 return PromisePrototypeThen(

Callers 4

truncateFunction · 0.85
lchmodFunction · 0.85
writeFileFunction · 0.85
readFileFunction · 0.85

Calls 1

aggregateTwoErrorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…