Hello everyone, I'm playing with the `WorkManager`...
# coroutines
i
Hello everyone, I'm playing with the `WorkManager`from the Android jetpack... I'd like to call some suspend functions inside of it, but the
Worker
expects a return value, so I can't just use the
launch
dispatcher. I'm using the
runBlocking
dispatcher to be able to call the suspend functions... Is this the right way to go? Here's an example:
Copy code
override fun doWork(): Result = runBlocking {
        //call some suspend functions
       return Result.SUCCESS
    }
Thanks!