diff --git a/.gitignore b/.gitignore index f3a5856..dd5affa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ /.build /Packages xcuserdata/ +.dependencies +.derivedData DerivedData/ .swiftpm/ .swiftpm/configuration/registries.json diff --git a/LICENSE b/LICENSE index 6ae1916..d2e1061 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Code Fiesta +Copyright (c) 2026 Code Fiesta Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Sources/OAuthKit/OAuth.swift b/Sources/OAuthKit/OAuth.swift index 00907f6..178b995 100644 --- a/Sources/OAuthKit/OAuth.swift +++ b/Sources/OAuthKit/OAuth.swift @@ -328,7 +328,13 @@ private extension OAuth { /// - operation: the operation to be run immediately upon entering the task. func task(priority: TaskPriority = .high, operation: sending @escaping @isolated(any) () async throws -> Void) { if #available(macOS 26, iOS 26, watchOS 26, tvOS 26, visionOS 26, *) { + #if compiler(>=6.2) + // Swfit 6.2 compilers and above Task.immediate(operation: operation) + #else + // Swift 6.1 compiler + Task(priority: priority, operation: operation) + #endif } else { Task(priority: priority, operation: operation) }