https://kotlinlang.org logo
#coroutines
Title
# coroutines
i

itnoles

06/17/2020, 7:27 PM
Do I need to have continuation.isCancelled inside suspendCancellableCoroutine for okhttp?
d

Dominaezzz

06/17/2020, 7:42 PM
Nope. It checks that for you already.
i

itnoles

06/17/2020, 7:43 PM
Oh, is there is a release notes for it?
d

Dominaezzz

06/17/2020, 7:44 PM
It's in the docs for
suspendCancellableCoroutine
. (OkHttp doesn't have anything to do with it)
i

itnoles

06/17/2020, 7:44 PM
I know about okhttp.
"in cancelled state is ignored"
i

itnoles

06/17/2020, 7:54 PM
small print, 🙂
7 Views