`WaitForNotification` in eclib should return an error and instead populate the received event via a pointer argument.