Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
appstore-distribution ▾

xtool.git / Sources / XKit / Utilities / Task+Utils.swift

Task+Utils.swift5 lines · 170 BRaw
1extension Task<Never, Never> {
2 public static func sleep(seconds: Double) async throws {
3 try await sleep(nanoseconds: UInt64(seconds * 1_000_000_000))
4 }
5}