mirror of
https://github.com/danog/amp.git
synced 2025-01-22 21:31:18 +01:00
12 lines
211 B
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;
|
|
});
|
|
});
|