stevan / promises-perl

An implementation of Promises in Perl
31 stars 29 forks source link

Abort using confess instead of die #94

Open maros opened 2 years ago

maros commented 2 years ago

This makes debugging in async environments much easier compared to simple die.

Currently the error message when an already rejected/resolved promise was rejected/resolved again is not very helpful finding the cause (since the exception goes all the way up into the AnyEvent loop and is re-thrown at the condvar recv