How to auto-refresh Realm inside Android WorkManager

In this tutorial, I teach you how to overcome one of the biggest pain points in Realm for Android, i.e. how to use Realm in a background thread.