React\Gifsocket\GifStream::close PHP 메소드

close() 공개 메소드

public close ( )
    public function close()
    {
        if ($this->closed) {
            return;
        }
        $data = $this->encoder->finish();
        $this->emit('data', [$data]);
        $this->closed = true;
        $this->emit('close');
        $this->removeAllListeners();
    }