android / architecture-samples

A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
Apache License 2.0
44.3k stars 11.62k forks source link

Move Task ID creation out of Task #924

Closed dturner closed 1 year ago

dturner commented 1 year ago

The repository is now responsible for creating the task ID, previously it was inside the Task constructor. This provides an example of moving a potentially CPU intensive operation onto a non main thread using Dispatcher.Default.