George Z
02/21/2025, 7:32 PM<http://Dispatchers.IO|Dispatchers.IO>
when making network requests. This is something I always wondered if it was worth doing when working with Retrofit suspend functions, or Ktor. What are your thoughts on it?jw
02/21/2025, 7:35 PMjw
02/21/2025, 7:36 PMCoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch { .. }
is not how you're supposed to move work aroundGeorge Z
02/21/2025, 7:38 PMYoussef Shoaib [MOD]
02/21/2025, 7:45 PM<http://Dispatchers.IO|Dispatchers.IO>
This is just wrong. If a suspend function needs to execute in a specific context, it should swap itself to that context. Any suspend network library will do that automagically (because otherwise what's the point of suspend?)George Z
02/21/2025, 7:47 PMLeo N
02/23/2025, 3:27 PMJoost Klitsie
03/03/2025, 10:48 AM