Hi all, in the Kotlin in Action 2nd edition book i...
# getting-started
g
Hi all, in the Kotlin in Action 2nd edition book it says in the beginning of the chapter about coroutines.
I am having dificulty to parse the second part of this sentence: "developers need tools to coordinate and synchronize between concurrent tasks."
Does "coordinate and synchronize between concurrent tasks" mean "synchronize concurrent tasks"?
and here the "task" is the same as "operation" in the first part of the sentence?
In short, the whole sentence means something like "That means developers need tools to allow different operations to execute concurrently and synchronize them." Right?
👌 2
r
Yes, you are right The text is saying developers need tools (like Coroutines in Kotlin or concurrency) that let them run tasks on different coroutines (either managed on main thread, io, default etc.) so the app stays responsive, while also providing a way to safely manage the results of those background tasks, like you can create a
job
you may cancel, join check for its lifeline using
isActive
etc.
g
right
thank you
🙌 1