def __finish(self):
        """Check for exit, iterate once in the synchronous context, and call `self()`."""
        if not self.stopped():
            try:
                self.__synchronizer(lambda:(self.next(), self._execute()))
            except:
                self.throw(*exc_info())
Check for exit, iterate once in the synchronous context, and call `self()`.
recipes/Python/576965_Multicontext_eg_asynchronous_inline/recipe-576965.py