Skip to content

Instantly share code, notes, and snippets.

@amrox
Created August 4, 2011 01:32
Show Gist options
  • Select an option

  • Save amrox/1124312 to your computer and use it in GitHub Desktop.

Select an option

Save amrox/1124312 to your computer and use it in GitHub Desktop.
TEST_WAIT_UNTIL_TRUE
#define TEST_WAIT_UNTIL_TRUE_SLEEP_SECONDS (0.25)
#define TEST_WAIT_UNTIL_TRUE(expr) \
while( (expr) == NO ) [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:TEST_WAIT_UNTIL_TRUE_SLEEP_SECONDS]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment