MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / done

Function done

src/client/sandbox.mjs:618–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

616function 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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected