1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/lib/DisposedException.php
2020-09-24 12:53:31 -05:00

16 lines
386 B
PHP

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