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

elizarov

03/16/2018, 6:40 PM
Due to popular demand I wrote (hopefully approachable) piece that explains what do we mean by “concurrent” when we talk about mutable state and how it is all related to Kotlin coroutines https://medium.com/@elizarov/what-is-concurrent-access-to-mutable-state-f386e5cb8292
👏 5
👍 13
d

dekans

03/18/2018, 9:13 PM
No two actions in the same coroutine can be concurrent
What's the exact definition/scope of one coroutine when used with via
Channel
? I experimented an actor executes its actions sequentially, even when its coroutines context is
CommonPool
, but I'm curious to get it right.
e

elizarov

03/18/2018, 9:54 PM
You start a new coroutine with
launch
,
async
,
produce
,
actor
or a similar coroutine builder.
d

dekans

03/19/2018, 8:43 AM
OK, so every new action in an
actor
for example is still in the same coroutine
2 Views