Amp\Artax\SocketPool::clear PHP 메소드

clear() 공개 메소드

Remove the specified socket from the pool
public clear ( resource $resource ) : self
$resource resource
리턴 self
    public function clear($resource)
    {
        $socketId = (int) $resource;
        if (isset($this->socketIdUriMap[$socketId])) {
            $uri = $this->socketIdUriMap[$socketId];
            $this->unloadSocket($uri, $socketId);
        }
        return $this;
    }