ktorio / ktor

Framework for quickly creating connected applications in Kotlin with minimal effort
https://ktor.io
Apache License 2.0
12.86k stars 1.04k forks source link

KTOR-7355 Check in usePreconfiguredSession that delegate is set #4305

Closed osipxd closed 3 weeks ago

osipxd commented 3 weeks ago

Subsystem Client, ktor-client-darwin

Motivation KTOR-7355 Preconfigured NSURLSession causes requests to hang

Solution It is a valid behavior because the session was created without the delegate. Nevertheless, it is quite unobvious behavior, so I added check that delegate was specified and example of usage to KDoc.