WorkerFactory.php
public function disableSharedWorker($socketAddress)
    {
        return $this->transactKillSwitch(function (KillSwitch $kswitch) use ($socketAddress) {
            if (is_array($socketAddress) || $socketAddress instanceof Traversable) {
                foreach ($socketAddress as $address) {
                    $kswitch->addAddress($address);
                }
            } else {
                $kswitch->addAddress($socketAddress);
            }
        });
    }
public function disableSharedWorker($socketAddress)
    {
        return $this->transactKillSwitch(function (KillSwitch $kswitch) use ($socketAddress) {
            if (is_array($socketAddress) || $socketAddress instanceof Traversable) {
                foreach ($socketAddress as $address) {
                    $kswitch->addAddress($address);
                }
            } else {
                $kswitch->addAddress($socketAddress);
            }
        });
    }
@param string|array|Traversable $socketAddress

@throws Exception\LogicException

@return $this