1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00
amp/lib/TimeoutException.php
2018-10-08 18:39:44 +02:00

20 lines
367 B
PHP

<?php
namespace Amp;
/**
* Thrown if an awaitable doesn't resolve within a specified timeout.
*
* @see \Amp\timeout()
*/
class TimeoutException extends \Exception
{
/**
* @param string|null $message Exception message.
*/
public function __construct(string $message = "Operation timed out")
{
parent::__construct($message);
}
}