    def _setup_asyncio_thread(self):
        """Create asyncio loop

        To be called from the background thread,
        so that any thread-local state is setup correctly
        """
        self._thread_loop = asyncio.new_event_loop()
Create asyncio loop

To be called from the background thread,
so that any thread-local state is setup correctly
jupyterhub/services/auth.py