retryAssertion() — tailwindcss Function Reference
Architecture documentation for the retryAssertion() function in utils.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 22238dde_7df7_64d5_1424_a93cf2421b15["retryAssertion()"] 7600373a_3645_efb1_bcbb_e7c3fcb813ac["utils.ts"] 22238dde_7df7_64d5_1424_a93cf2421b15 -->|defined in| 7600373a_3645_efb1_bcbb_e7c3fcb813ac 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04["test()"] 44ea7d66_6ac1_15b9_1cc7_d01c23a5ee04 -->|calls| 22238dde_7df7_64d5_1424_a93cf2421b15 style 22238dde_7df7_64d5_1424_a93cf2421b15 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integrations/utils.ts lines 547–562
export async function retryAssertion<T>(
fn: () => Promise<T>,
{ timeout = ASSERTION_TIMEOUT, delay = 5 }: { timeout?: number; delay?: number } = {},
) {
let end = Date.now() + timeout
let error: any
while (Date.now() < end) {
try {
return await fn()
} catch (err) {
error = err
await new Promise((resolve) => setTimeout(resolve, delay))
}
}
throw error
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does retryAssertion() do?
retryAssertion() is a function in the tailwindcss codebase, defined in integrations/utils.ts.
Where is retryAssertion() defined?
retryAssertion() is defined in integrations/utils.ts at line 547.
What calls retryAssertion()?
retryAssertion() is called by 1 function(s): test.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free