Files
development/vendor/amphp/amp/lib/CancelledException.php
2023-03-09 16:27:10 +09:00

18 lines
340 B
PHP

<?php
namespace Amp;
/**
* Will be thrown in case an operation is cancelled.
*
* @see CancellationToken
* @see CancellationTokenSource
*/
class CancelledException extends \Exception
{
public function __construct(\Throwable $previous = null)
{
parent::__construct("The operation was cancelled", 0, $previous);
}
}