How do I use coroutines on Android?
Answer
In addition to invoke (or call) and return, coroutines add suspend and resume. This functionality is added by Kotlin by the suspend keyword on the function. You can only call suspend functions from other suspend functions, or by using a
coroutine builder like launch to start a new coroutine.
Answer
In addition to invoke (or call) and return, coroutines add suspend and resume. This functionality is added by Kotlin by the suspend keyword on the function. You can only call suspend functions from other suspend functions, or by using a
coroutine builder like launch to start a new coroutine.