1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/lib/bootstrap.php
Aaron Piotrowski 5651240615 Update to promise spec v0.3
Dropped strict-types due to spec requiring weak types in callbacks.
2016-12-29 16:29:27 -06:00

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;
});
});