Skip to content

Instantly share code, notes, and snippets.

@l4u
Created October 3, 2013 14:23
Show Gist options
  • Save l4u/6810690 to your computer and use it in GitHub Desktop.
Save l4u/6810690 to your computer and use it in GitHub Desktop.
while (dispatch_semaphore_wait(sema, DISPATCH_TIME_NOW))
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode
beforeDate:[NSDate dateWithTimeIntervalSinceNow:2]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment