Join Slack
Powered by
<@U0MD6T132> I'd port it to coroutines along these...
# coroutines
e
elizarov
06/21/2017, 10:45 PM
@alucard
I'd port it to coroutines along these lines:
https://gist.github.com/elizarov/19652e5d677ec41cecedfa828b89c5f2
Key takeaways: use
produce
to get a simple channel (bonus: simpler, faster + not a single item ever lost), combine all subscribers into one coroutine that is running on UI thread (bonus: simpler + data-race freedom guarantee).
Open in Slack
Previous
Next