Skip to content

Commit e601f16

Browse files
committed
Mark Complex Sendable when the underlying RealType is.
1 parent 6c4accd commit e601f16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ComplexModule/Complex.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public struct Complex<RealType> where RealType: Real {
6969
}
7070
}
7171

72+
extension Complex: Sendable where RealType: Sendable { }
73+
7274
// MARK: - Basic properties
7375
extension Complex {
7476
/// The real part of this complex value.

0 commit comments

Comments
 (0)