Tagged articles

Suspend Functions

3 articles · Page 1 of 1
Thought Artisan
Thought Artisan
Sep 9, 2026 · Fundamentals

Main-Safe Pattern & Computational Abstraction: Architecture Case Studies

This article reviews two architecture case studies: the Main-Safe pattern using Kotlin suspend functions to enforce main-thread safety in Android, and a computational abstraction using FlowChain and FlowNode higher-order functions to separate invariant and variant logic, eliminating if-else chains through flow orchestration.

Android ArchitectureFlowChainFlowNode
0 likes · 5 min read
Main-Safe Pattern & Computational Abstraction: Architecture Case Studies
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