For example, this section <https://github.com/Kotl...
# coroutines
e
For example, this section https://github.com/Kotlin/kotlin-coroutines/blob/revision-2/kotlin-coroutines-informal.md#dispatcher gives an example of
asyncSwing{...}
that dispatches a coroutine on a Swing event dispatch thread. So, if you start all your coroutines with
asyncSwing{...}
then they all with get executed in a single thread and you will not have to deal with concurrent modification of shared mutable state.