https://kotlinlang.org logo
#coroutines
Title
# coroutines
s

sam

05/22/2019, 7:06 PM
If I am writing a function that can call suspendable functions, is there a preference between making that function suspend itself, or defining it on CoroutineScope ? Or in other words, when should one use suspend and when should one use CoroutineScope as a receiver ?
⏸️ 1
e

elizarov

05/22/2019, 7:12 PM
Make it
suspend
✔️ 1
5 Views