sleep snippets

How to put the run loop to sleep

Tagged sleep, runloop, objective-c  Languages objectivec
NSDate *stopDate = [NSDate dateWithTimeIntervalSinceNow:2];
[[NSRunLoop currentRunLoop] runUntilDate:stopDate];