Skip to content

Commit

Permalink
Fix Swift 6 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 15, 2024
1 parent c498eff commit 3124988
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Get 2.x

## Get 2.2.1

*Oct 15, 2024*

- Fix Swift 6 warnings

## Get 2.2

*Apr 13, 2024*
Expand Down
6 changes: 3 additions & 3 deletions Sources/Get/DataLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDele
try await withTaskCancellationHandler(operation: {
try await withUnsafeThrowingContinuation { continuation in
let handler = DataTaskHandler(delegate: delegate)
handler.completion = continuation.resume(with:)
handler.completion = { continuation.resume(with: $0) }
self.handlers[task] = handler

task.resume()
Expand All @@ -46,7 +46,7 @@ final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDele
try await withTaskCancellationHandler(operation: {
try await withUnsafeThrowingContinuation { continuation in
let handler = DownloadTaskHandler(delegate: delegate)
handler.completion = continuation.resume(with:)
handler.completion = { continuation.resume(with: $0) }
self.handlers[task] = handler

task.resume()
Expand All @@ -60,7 +60,7 @@ final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDele
try await withTaskCancellationHandler(operation: {
try await withUnsafeThrowingContinuation { continuation in
let handler = DataTaskHandler(delegate: delegate)
handler.completion = continuation.resume(with:)
handler.completion = { continuation.resume(with: $0) }
self.handlers[task] = handler

task.resume()
Expand Down

0 comments on commit 3124988

Please # to comment.