Coroutine/Exceptions/Panic.php
<?php
namespace Async;
use Async\Panicking;
class Panic extends \Exception implements Panicking
{
public function __construct($message = null, $code = 0, \Throwable $previous = null)
{
parent::__construct(\sprintf('The task has erred: %s', $message), $code, $previous);
}
}