Stream::close can throw Amp\ByteStream\ClosedException

This commit is contained in:
2021-09-18 22:07:07 +03:00
parent 679573ad0a
commit aa3333bfba
3 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,9 @@ class SocketStream implements Stream
return $this->socket->write($data);
}
/**
* {@inheritDoc}
*/
public function close(): void
{
$this->socket->close();