def _start_in_thread(self): """ Start the server in a thread, returns when when server is listening and ready to accept incoming connections. Used for testing, API could change anytime! Do not use!""" return spawn_waitready(self._listen, self.start)[0]