Skip to content

Instantly share code, notes, and snippets.

@douglashill
Created September 26, 2014 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglashill/41f4ef3282172eefca38 to your computer and use it in GitHub Desktop.
Save douglashill/41f4ef3282172eefca38 to your computer and use it in GitHub Desktop.
static void repeat(NSUInteger repeatCount, void (^blockToRepeat)(void))
{
if (blockToRepeat == nil) {
return;
}
while (repeatCount--) {
blockToRepeat();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment