Amp\Artax\BufferWriter::fail PHP Method

fail() private method

private fail ( Exception $e )
$e Exception
    private function fail(\Exception $e)
    {
        $this->promisor->fail($e);
        if ($this->writeWatcher) {
            \Amp\cancel($this->writeWatcher);
        }
    }