python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to initialize a field in viewModel with suspend method
How to initialize a field in view model if I need to call the suspend function to get the value?
I a have suspend function that returns value from a database.
suspend fun fetchProduct(): Product
When...
Sasha Arutyunyan
Votes: 0
Answers: 3
What happens when a function is suspended. During the suspension, where does the "suspend" function go
Please explain
What happened with a function getting suspended
where suspended function go during the suspension
How the communication happens to resume the suspended function
Who is responsible to t...

Ashish Dwivedi
Votes: 0
Answers: 1
return in coroutine with kotlin and suspend functions
IN line return@withContext cachedCategories because it can't just be return cachedCategories only. Whats @withContext ?
Code full:
@Singleton
class FoodMenuRemoteSource @Inject constructor(private val...
Luan Pedro
Votes: 0
Answers: 1
How to check if a suspend function has completed executing
Hello I have a suspend function updateUserWithNewPersonalDetails(), I want check if the function has been executed and once executed I want to call success() function.
I am unable to use invokeOnCompl...
BRDroid
Votes: 0
Answers: 1