zak.taccardi
08/31/2023, 9:47 PMactor
approach was removed from the documentation here?
https://kotlinlang.org/docs/shared-mutable-state-and-concurrency.htmlJeff Lockhart
08/31/2023, 9:55 PMCasey Brooks
08/31/2023, 9:59 PMactor { }
API was only ever available in JVM targets, and it was little more than a Channel
. It simply was never developed beyond that, and while there has long been the desire for a new Actor API, it just hasn’t been a priority.
that’s not to say Actors or similar patterns like MVI aren’t extremely useful. It’s just that the kotlin team has effectively delegated such higher-level concurrency patterns to community libraries (like my own Ballast MVI library) so they can focus more on the lower-level stuff like you’d find in that doc, which form the basis for higher-level patterns.