MCPcopy Create free account
hub / github.com/WebDevSimplified/job-queue / sendEmail

Function sendEmail

src/index.ts:64–70  ·  view source on GitHub ↗
(email: string, body: string)

Source from the content-addressed store, hash-verified

62worker.start()
63
64function sendEmail(email: string, body: string) {
65 if (body === "Error") {
66 console.log(`Error sending email to ${email}`)
67 throw new Error("Simulated error")
68 }
69 return new Promise(resolve => setTimeout(resolve, 1000))
70}

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected