1
0
mirror of https://github.com/danog/amp.git synced 2024-12-12 09:29:45 +01:00
amp/lib/DisposedException.php
Aaron Piotrowski 96007f11aa
Add Streams
2020-09-24 12:53:27 -05:00

16 lines
382 B
PHP

<?php
namespace Amp;
/**
* Will be thrown from {@see StreamSource::yield()} or the yield callable provided by {@see AsyncGenerator} if the
* associated stream is destroyed.
*/
final class DisposedException extends \Exception
{
public function __construct(\Throwable $previous = null)
{
parent::__construct("The stream has been disposed", 0, $previous);
}
}