MB_Coder Newsletter

Share this post

When to use WorkManager instead of Kotlin Coroutines?

martinbaraya.substack.com

When to use WorkManager instead of Kotlin Coroutines?

WorkManager VS Coroutines

Martin Baraya
Sep 30, 2021
Share this post

When to use WorkManager instead of Kotlin Coroutines?

martinbaraya.substack.com

use WorkManager:

  • WorkManager is responsible for (schedule deferrable tasks) that can be completed at any later time.

  • Use WorkManager when a task must be completed immediately and must continue to be processed even if the user puts the application in the background or the device restarts.

use Coroutines:

  • Coroutines are designed to (perform a task asynchronously) and immediately.

  • The task will end when the user goes from a certain scope or finishes an interaction.

Share this post

When to use WorkManager instead of Kotlin Coroutines?

martinbaraya.substack.com
Comments
TopNew

No posts

Ready for more?

© 2023 Martin Baraya
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing