Convert event to Promises/A style API