EventScheduler add wait event function