MCPcopy
hub / github.com/CodebuffAI/codebuff / greetAsync

Function greetAsync

packages/code-map/__tests__/test-langs/test.js:30–36  ·  view source on GitHub ↗
(greeter, name)

Source from the content-addressed store, hash-verified

28
29// Arrow function
30const greetAsync = async (greeter, name) => {
31 return new Promise((resolve) => {
32 setTimeout(() => {
33 resolve(greeter.greet(name))
34 }, 100)
35 })
36}
37
38// Main execution
39;(async function main() {

Callers 1

test.jsFile · 0.85

Calls 3

setTimeoutFunction · 0.85
greetMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected