Checking the guide of architecture in Android, I have a question about this sentence: "*Types are responsible for their concurrency policy. If a type is performing long-running blocking work, it should be responsible for moving that computation to the right thread. That particular type knows the type of computation that it is doing and in which thread it should be executed. Types should be main-safe, meaning they're safe to call from the main thread without blocking it.*" Does anyone know what they mean with Types?
not kotlin but kotlin colored 2
c
Chrimaeon
10/28/2024, 8:17 PM
Image from iOS.jpg
r
Robert Williams
10/29/2024, 10:47 AM
In this case (as in many cases) you can substitute "class" for "type" and it'll make more sense
But this feels like a rushed find/ replace (maybe someone at Google said they should use "type" to be more kotlin) where they're specifically talking about concrete implementations i.e. classes