//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// extension Task where Success == Never, Failure == Never { @available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *) @_disfavoredOverload public static func sleep( until deadine: C.Instant, tolerance: C.Instant.Duration? = nil, clock: C ) async throws { try await clock.sleep(until: deadine, tolerance: tolerance) } }