isProviderStallError function

bool isProviderStallError(
  1. String? errorMessage
)

Whether errorMessage is a stall-class failure at all (connect, first-byte, or mid-stream) — the gate the SilentStreamPolicy consults before treating a death as a stall.

Implementation

bool isProviderStallError(String? errorMessage) =>
    classifyProviderStall(errorMessage) != null;