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

Function handleFdSync

lib/internal/fs/promises.js:1092–1102  ·  view source on GitHub ↗
(fileOpPromise, handle)

Source from the content-addressed store, hash-verified

1090}
1091
1092async function handleFdSync(fileOpPromise, handle) {
1093 return PromisePrototypeThen(
1094 fileOpPromise,
1095 (result) => PromisePrototypeThen(
1096 handle.sync(),
1097 () => result,
1098 (syncError) => PromiseReject(syncError),
1099 ),
1100 (opError) => PromiseReject(opError),
1101 );
1102}
1103
1104async function fsCall(fn, handle, ...args) {
1105 assert(handle[kRefs] !== undefined,

Callers 1

writeFileFunction · 0.85

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…