pub fn wait_for_event<P>( scheduler: &Scheduler<P>, task: &Arc<Task<P>>, event_handle: usize, block: usize, ) -> Result<(), WaitForEventError>where P: Platform,