onResume

protected open fun onResume()

The background thread has been started or was resumes. You can do a little (< 50ms) preparations here. If there is a lot to do then add yourself a job to do it.