(self)
return self.client_factory(
            hook_registry=self.main_client.hook_registry,
            api_registry=self.main_client.api_registry,
        )
Create a bus client using our client_factory
Create a bus client using our client_factory
Create a bus client using our client_factory
def _create_client(self) -> BusClient:
        """Create a bus client using our client_factory"""
        # Create another client, as the bus has been accessed
        # from a thread. Pass this new client the hook & api
        # registry which would have been configured post-instantiation,
        # and therefore our client_factory will not be aware of this state.
        # TODO: Consider copying this rather than passing a reference
        return self.client_factory(
            hook_registry=self.main_client.hook_registry,
            api_registry=self.main_client.api_registry,
        )
def _create_client ( self ) -> BusClient : # Create another client, as the bus has been accessed # from a thread. Pass this new client the hook & api # registry which would have been configured post-instantiation, # and therefore our client_factory will not be aware of this state. # TODO: Consider copying this rather than passing a reference return self . client_factory ( hook_registry = self . main_client . hook_registry , api_registry = self . main_client . api_registry , )