Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/.build
/Packages
xcuserdata/
.dependencies
.derivedData
DerivedData/
.swiftpm/
.swiftpm/configuration/registries.json
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions Sources/OAuthKit/OAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Loading