MCPcopy Create free account
hub / github.com/azat-co/practicalnode / _errorCallback

Function _errorCallback

code/ch14/promise/basic-promise-3.js:4–4  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2function readFilePromise( filename ) {
3 let _callback = () => {}
4 let _errorCallback = () => {}
5
6 fs.readFile(filename, (error, buffer) => {
7 if (error) _errorCallback(error)

Callers 1

readFilePromiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected