Join Slack
Powered by
launch (UI) { val data = run (BACKGROUND) { get...
# coroutines
k
krenvpravo
11/12/2017, 7:08 PM
launch (UI) { val data = run (BACKGROUND) { getMyLongComputation} view.updateData(data) } This will update view when data is loaded, just use two nested coroutines. But I found it easy to get race conditions, when use this approach in general.
6
Views
Open in Slack
Previous
Next