(self, callback=None, *, before_plugins=False)
return self.after_worker_stopped(callback, before_plugins=before_plugins)
Decorator to register a function to be called after the worker stops

        Callback will be called with the following arguments:

            callback(self, *, client: "BusClient")
Decorator to register a function to be called after the worker stops
Decorator to register a function to be called after the worker stops
def on_stop(self, callback=None, *, before_plugins=False):
        """Decorator to register a function to be called after the worker stops

        Callback will be called with the following arguments:

            callback(self, *, client: "BusClient")
        """
        return self.after_worker_stopped(callback, before_plugins=before_plugins)
def on_stop ( self , callback = None , * , before_plugins = False ) : return self . after_worker_stopped ( callback , before_plugins = before_plugins )