title: What is best practice to use coroutine with fragment?
body: <p><strong>Description</strong> <br> I have TabLayout with multiple fragments. I want to save fragment data into Room DB on fragment change/swipe and display data to the user when it back to fragment.</p>
  
  <p><strong>Currently Using</strong> <br> Currently, I am using coroutine with <code>GlobalScope.launch</code> to save into a fragment and it is working fine.</p>
  
  <p><strong>Questions</strong> <br> 
  1. What is the best practice to use a coroutine with fragments to save data to DB on fragment change? <br> 
  2. It is good practice to use <code>GlobalScope.launch</code> on fragment change? <br>
  3. if <code>GlobalScope.launch</code> is not good to use then what we can use instead of it?</p>