mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
16 lines
336 B
PHP
16 lines
336 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);
|
|
}
|
|
}
|