This example refers to my question posted on Kotlin Discussion, StackOverFlow-En and StackOverFlow-Pt.
In it I added the answers and suggestions that were given.
In the application, I copy files from one directory to another, to simulate simultaneous background tasks using Kotlin Coroutines / Flow.