Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/wevm/viem
/ closeAsync
Function
closeAsync
test/src/utils.ts:67–70 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
65
const
server = createServer(handler)
66
67
const
closeAsync = () =>
68
new
Promise((resolve, reject) =>
69
server.close((err) => (err ? reject(err) : resolve(undefined))),
70
)
71
72
return
new
Promise((resolve) => {
73
server.listen(() => {
Callers
nothing calls this directly
Calls
2
reject
Function · 0.85
resolve
Function · 0.50
Tested by
no test coverage detected