Promises/A+ implementation and Signal (event handling)