Tagged articles
2 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Mar 3, 2021 · Mobile Development

How Retrofit Handles Kotlin suspend Functions

This article explains how Retrofit 2.6.0 adds support for Kotlin suspend functions by detecting the Continuation parameter, determining the return type, and generating appropriate CallAdapter implementations such as SuspendForResponse and SuspendForBody to integrate coroutine handling with OkHttp.

CallAdapterCoroutinesKotlin
0 likes · 12 min read
How Retrofit Handles Kotlin suspend Functions
Sohu Tech Products
Sohu Tech Products
Aug 19, 2020 · Mobile Development

Understanding Kotlin Coroutines

This article provides a comprehensive guide to Kotlin coroutines, covering their concepts, creation methods (launch, runBlocking, async), nesting, suspend functions, cancellation, timeout handling, dispatchers, scopes, underlying implementation, and a practical Retrofit‑OkHttp example for asynchronous network requests in Android.

CoroutinesKotlinRetrofit
0 likes · 20 min read
Understanding Kotlin Coroutines