retryAssertion() — tailwindcss Function Reference
Architecture documentation for the retryAssertion() function in utils.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 11274fdc_ba3f_1da4_d9bd_3100647d61e3["retryAssertion()"] 95c8f29e_91f6_456b_d507_743b887b8c33["test()"] 95c8f29e_91f6_456b_d507_743b887b8c33 -->|calls| 11274fdc_ba3f_1da4_d9bd_3100647d61e3 style 11274fdc_ba3f_1da4_d9bd_3100647d61e3 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
Called By
Source
Frequently Asked Questions
What does retryAssertion() do?
retryAssertion() is a function in the tailwindcss codebase.
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