sleep(forTimeInterval:)
Sleeps the thread for a given time interval.
Declaration
class func sleep(forTimeInterval ti: TimeInterval)Parameters
- ti:
The duration of the sleep.
Discussion
No run loop processing occurs while the thread is blocked.
Sleeps the thread for a given time interval.
class func sleep(forTimeInterval ti: TimeInterval)The duration of the sleep.
No run loop processing occurs while the thread is blocked.