1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/lib/bootstrap.php

12 lines
211 B
PHP

<?php
namespace Amp;
use AsyncInterop\{ Loop, Promise\ErrorHandler };
ErrorHandler::set(function (\Throwable $exception) {
Loop::defer(function () use ($exception) {
throw $exception;
});
});