Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/azat-co/practicalnode
/ _callback
Function
_callback
code/ch14/promise/basic-promise-3.js:3–3 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
const
fs = require(
'fs'
)
2
function
readFilePromise( filename ) {
3
let
_callback = () => {}
4
let
_errorCallback = () => {}
5
6
fs.readFile(filename, (error, buffer) => {
Callers
2
readFilePromise
Function · 0.85
myAsyncTimeoutFn
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected