MCPcopy
hub / github.com/fastapi/full-stack-fastapi-template / checkEmails

Function checkEmails

frontend/tests/utils/mailcatcher.ts:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 )
48
49 const checkEmails = async () => {
50 while (true) {
51 const emailData = await findEmail({ request, filter })
52
53 if (emailData) {
54 return emailData
55 }
56 // Wait for 100ms before checking again
57 await new Promise((resolve) => setTimeout(resolve, 100))
58 }
59 }
60
61 return Promise.race([timeoutPromise, checkEmails()])
62}

Callers 1

findLastEmailFunction · 0.85

Calls 1

findEmailFunction · 0.85

Tested by

no test coverage detected