mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In the Dispatch implementation, clamp the delay to INT64_MAX. Swift's nanoseconds value is unsigned, but we ultimately use it with dispatch_time, which takes a signed int64_t. Extremely large values get interpreted as negative, which results in not sleeping. INT64_MAX nanoseconds is about 292 years, so it should be difficult to notice a practical effect from sleeping for less time than requested due to the clamping. rdar://143278824
1.9 KiB
1.9 KiB