pub fn wait_event(f: &File, d: Duration) -> Result<bool>
Wait for the file to have an event available to read.