1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00

update docblock

This commit is contained in:
Daniel Lowrey 2015-04-03 12:52:17 -04:00
parent 812e1fb6b4
commit 60f1b4484e

View File

@ -108,6 +108,10 @@ interface Reactor {
* problematic. Amp applications can instead specify the onError callback to handle uncaught
* exceptions without stopping the event loop.
*
* Additionally, generator callbacks which are auto-resolved by the event reactor may fail.
* Coroutine resolution failures are treated like uncaught exceptions and stop the event reactor
* if no onError callback is specified to handle these situations.
*
* onError callback functions are passed a single parameter: the uncaught exception.
*
* @param callable $callback A callback to invoke when an exception occurs inside the event loop