FailableRequests

internal class FailableRequests

Fails the requests of the clients it is installed on, in flight and new, while failRequests runs. A failed request throws an IOException, which callers treat as no network, so it also ends a crypto transaction that waits on it. The caller's own cancellation still wins.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun <T> failRequests(block: suspend () -> T): T
Link copied to clipboard
fun install(client: HttpClient)