WorkManager for Immediate Tasks
Sometimes it’s best to execute right away
Takeaway from this article
This blog post focus on how to implement long-running background tasks that need to start immediately with WorkManager. You need to be familiar with the basics of WorkManager before going any further, so I would recommend learning from here.