mirror of
https://github.com/danog/amp.git
synced 2025-01-22 21:31:18 +01:00
5651240615
Dropped strict-types due to spec requiring weak types in callbacks.
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;
|
|
});
|
|
});
|