title: How to call suspend function from Fragment or Activity?
body: <p>I want to request permission and do it by nonblocking function. Since I need Context I can not call it from ViewModel. How to give a default UI scope for fragment and call suspend function like this:</p>
  
  <pre><code>class MapsFragment : Fragment() {
  
  override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
      super.onViewCreated(view, savedInstanceState)
      mapFragment = childFragmentManager.findFragmentById(R.id.map) as SupportMapFragment?
  
      launch {
           withContext(Dispatcher.Main){
             checkLocationPermission().await()
          }
      }
   }
  }
  
  
  suspend fun checkLocationPermission():Boolean{...}
  </code></pre>