Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/marijnh/Eloquent-JavaScript
/ awaitEvent
Function
awaitEvent
src/client/sandbox.mjs:616–624 ·
view source on GitHub ↗
(target, event)
Source
from the content-addressed store, hash-verified
614
}
615
616
function
awaitEvent(target, event) {
617
return
new
Promise(accept => {
618
let
done = () => {
619
target.removeEventListener(event, done)
620
accept()
621
}
622
target.addEventListener(event, done)
623
})
624
}
Callers
2
create
Method · 0.85
setHTML
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected