Vex Coding Studio Help

Hey our team is trying to do like a wait until task in our autononimous function. Does anyone have a code that is like a wait untl task.

while(whatever you're checking is false) {
   task::sleep( some small amount of time );
}