Skip to content

Commit

Permalink
ImageRequest.Container is no longer Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 27, 2024
1 parent b620989 commit 81e8412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Nuke/ImageRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import AppKit
/// )
/// let image = try await pipeline.image(for: request)
/// ```
public struct ImageRequest: CustomStringConvertible, Sendable, ExpressibleByStringLiteral {
public struct ImageRequest: CustomStringConvertible, @unchecked Sendable, ExpressibleByStringLiteral {
// MARK: Options

/// The relative priority of the request. The priority affects the order in
Expand Down Expand Up @@ -437,7 +437,7 @@ public struct ImageRequest: CustomStringConvertible, Sendable, ExpressibleByStri
extension ImageRequest {
/// Just like many Swift built-in types, ``ImageRequest`` uses CoW approach to
/// avoid memberwise retain/releases when ``ImageRequest`` is passed around.
private final class Container: @unchecked Sendable {
private final class Container {
// It's beneficial to put resource before priority and options because
// of the resource size/stride of 9/16. Priority (1 byte) and Options
// (2 bytes) slot just right in the remaining space.
Expand Down

0 comments on commit 81e8412

Please sign in to comment.