mirror of
https://github.com/danog/amp.git
synced 2025-01-23 05:41:25 +01:00
12 lines
212 B
PHP
12 lines
212 B
PHP
|
<?php
|
||
|
|
||
|
namespace Amp;
|
||
|
|
||
|
use Interop\Async\{ Loop, Promise\ErrorHandler };
|
||
|
|
||
|
ErrorHandler::set(function (\Throwable $exception) {
|
||
|
Loop::defer(function () use ($exception) {
|
||
|
throw $exception;
|
||
|
});
|
||
|
});
|