async_reload !== true) { return; } $event = Snowflake::app()->getEvent(); $event->on(Event::SERVER_WORKER_EXIT, function () { Snowflake::app()->remove($this->service); }); } /** * @param array $handler * @return mixed * @throws Exception */ public function execute(array $handler): mixed { $class = ['class' => get_class($handler[0])]; if (!empty($this->args)) { $class = array_merge($class, $this->args); } Snowflake::set($this->service, $class); return parent::execute($handler); // TODO: Change the autogenerated stub } }