Due to popular demand I wrote (hopefully approacha...
# coroutines
e
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
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
You start a new coroutine with
launch
,
async
,
produce
,
actor
or a similar coroutine builder.
d
OK, so every new action in an
actor
for example is still in the same coroutine