Stanislav Kral
02/26/2025, 6:30 AMget is not neccessary, but I am not able to find any documentation regarding which thread is used to deserialize the response.
// use client does not switch context
override suspend fun getFoos(): CallResult<List<Foo>> =
useClient { get("${baseUrl}/foos.json").body<List<Foo>>() }Aleksei Tirman [JB]
02/26/2025, 8:47 AMEmptyCoroutineContext which means that the Dispatchers.Default dispatcher should be chosen.Stanislav Kral
02/26/2025, 8:57 AM