1
0
mirror of https://github.com/danog/amp.git synced 2025-01-23 05:41:25 +01:00
amp/lib/bootstrap.php

12 lines
212 B
PHP
Raw Normal View History

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