projects/common/interactive/retry/with-retry.ts
import { RetryState } from '@cngx/common/interactive'
State exposed by the retryable action — read-only signals for UI feedback.
Signal
Current attempt number (1-based). 0 before first invocation.
0
Whether all attempts have been exhausted.
The last error from a failed attempt.
Total attempts allowed.
Whether a retry is currently pending (waiting for delay).
CngxAsyncState
Full CngxAsyncState view of the retry lifecycle.
Bind to any [state] consumer to connect the feedback system. retrying (delay between retries) maps to 'pending' — the feedback system sees "still working" during retry delays.
[state]
retrying
'pending'
void
Manually reset — clears exhausted state, resets attempt counter.