mod: ae_poll_wait return a ae_event_t array