Icicle\Loop\Manager\Select\SelectIoManager::isPending PHP Method

isPending() public method

public isPending ( Io $io ) : boolean
$io Io
return boolean
    public function isPending(Io $io) : bool
    {
        $id = (int) $io->getResource();
        return isset($this->sockets[$id]) && $io === $this->sockets[$id] && isset($this->pending[$id]);
    }