Skip to content

Commit

Permalink
Make HBCookies sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Nov 23, 2022
1 parent e838abe commit ea22706
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/HummingbirdFoundation/Cookies/Cookie.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,8 @@ public struct HBCookie: CustomStringConvertible {
var table: [Substring: String]
}
}

#if compiler(>=5.6)
extension HBCookie: Sendable {}
extension HBCookie.Properties: Sendable {}
#endif
4 changes: 4 additions & 0 deletions Sources/HummingbirdFoundation/Cookies/Cookies.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ public struct HBCookies {

var cookieStrings: [Substring]
}

#if compiler(>=5.6)
extension HBCookies: Sendable {}
#endif

0 comments on commit ea22706

Please sign in to comment.