Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanDoggie committed Apr 12, 2022
1 parent 60d0642 commit 78ee8b5
Show file tree
Hide file tree
Showing 20 changed files with 146 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/DoggieCore/Foundation/WeakDictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ extension WeakDictionary {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension WeakDictionary: Sendable where Key: Sendable, Value: Sendable { }

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension WeakDictionary.ValueContainer: Sendable where Key: Sendable, Value: Sendable { }

#endif

extension WeakDictionary {

@inlinable
Expand Down
10 changes: 10 additions & 0 deletions Sources/DoggieCore/Foundation/WeakSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ extension WeakSet {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension WeakSet: Sendable where Element: Sendable { }

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension WeakSet.ElementContainer: Sendable where Element: Sendable { }

#endif

extension WeakSet {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieCore/Swift/OptionOneCollection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ extension OptionOneCollection: Hashable where T: Hashable {

}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension OptionOneCollection: Sendable where T: Sendable { }

#endif

extension OptionOneCollection: ContiguousBytes where Element == UInt8 {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Bezier/Bezier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ extension Bezier: Encodable where Element: Encodable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Bezier: Sendable where Element: Sendable { }

#endif

extension Bezier {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Bezier/CubicBezier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ extension CubicBezier: Encodable where Element: Encodable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension CubicBezier: Sendable where Element: Sendable { }

#endif

extension CubicBezier {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Bezier/CubicBezierPatch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ extension CubicBezierPatch: Hashable where Element: Hashable {

}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension CubicBezierPatch: Sendable where Element: Sendable { }

#endif

extension CubicBezierPatch {

@inlinable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ extension CubicBezierTriangularPatch: Hashable where Element: Hashable {

}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension CubicBezierTriangularPatch: Sendable where Element: Sendable { }

#endif

extension CubicBezierTriangularPatch {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Bezier/LineSegment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ extension LineSegment: Encodable where Element: Encodable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension LineSegment: Sendable where Element: Sendable { }

#endif

extension LineSegment {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Bezier/QuadBezier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ extension QuadBezier: Encodable where Element: Encodable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension QuadBezier: Sendable where Element: Sendable { }

#endif

extension QuadBezier {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/EdgeInsets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public struct EdgeInsets: Hashable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension EdgeInsets: Sendable { }

#endif

extension Rect {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/Ellipse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ extension Radius: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Radius: Sendable { }

#endif

@inlinable
@inline(__always)
public func Ellipse(_ t: Double, _ p: Point, _ r: Radius) -> Point {
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/Matrix.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ extension Matrix: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Matrix: Sendable { }

#endif

extension Matrix {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/Point.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ extension Point: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Point: Sendable { }

#endif

extension Point: Tensor {

public typealias Indices = Range<Int>
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/Rect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ extension Rect: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Rect: Sendable { }

#endif

extension Rect {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/SDTransform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ extension SDTransform: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension SDTransform: Sendable { }

#endif

extension SDTransform {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/Size.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ extension Size: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Size: Sendable { }

#endif

extension Size {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieGeometry/Geometry/Vector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ extension Vector: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Vector: Sendable { }

#endif

extension Vector {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieMath/Complex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public struct Complex: Hashable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Complex: Sendable { }

#endif

extension Complex {

@inlinable
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieMath/Polynomial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ extension Polynomial: Codable {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Polynomial: Sendable { }

#endif

extension Polynomial: RandomAccessCollection, MutableCollection {

public typealias Indices = Range<Int>
Expand Down
7 changes: 7 additions & 0 deletions Sources/DoggieMath/Rational.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ extension Rational: CustomStringConvertible {
}
}

#if compiler(>=5.5.2) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension Rational: Sendable { }

#endif

extension Rational: SignedNumeric {

@inlinable
Expand Down

0 comments on commit 78ee8b5

Please sign in to comment.