MCPcopy Create free account
hub / github.com/Effect-TS/effect / retryAfterOf

Function retryAfterOf

packages/effect/src/http/HttpClient.ts:2608–2609  ·  view source on GitHub ↗
(input: unknown, nowMillis: number)

Source from the content-addressed store, hash-verified

2606}
2607
2608const retryAfterOf = (input: unknown, nowMillis: number): Duration.Duration | undefined =>
2609 parseRetryAfter(nowMillis, retryAfterHeaderOf(input))
2610
2611/**
2612 * Creates a predicate for `Schedule.while` that returns `false` when the

Callers 2

withRetryAfterFunction · 0.85

Calls 2

retryAfterHeaderOfFunction · 0.85
parseRetryAfterFunction · 0.70

Tested by

no test coverage detected