Join Slack
Whet's the difference between these ways of launching a coroutine?
# coroutines
c
coder82
08/22/2019, 2:39 PM
Whet's the difference between these ways of launching a coroutine?
Untitled.txt
s
streetsofboston
08/22/2019, 2:40 PM
The first is a function, the second one a statement (expression)
streetsofboston
08/22/2019, 2:41 PM
The first runs with any given CoroutineScope. The second one is a particular one, that has an empty context.
👍 1
c
coder82
08/22/2019, 2:44 PM
perfect, I was confused... took me 1-2 minuts to figure out your answer then it clicked.
5
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by