Skip to content

Commit

Permalink
Discriminants are Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
griotspeak committed Dec 25, 2024
1 parent 17e4108 commit b80b0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/DiscriminatedUnion/DiscriminatedUnion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public protocol DiscriminatedUnion {
var discriminant: Discriminant { get }
}

public protocol DiscriminantType: Hashable, Equatable, CaseIterable {}
public protocol DiscriminantType: Hashable, Equatable, CaseIterable, Sendable {}

extension DiscriminatedUnion {
public static func randomDiscriminant<G: RandomNumberGenerator>(
Expand Down

0 comments on commit b80b0ac

Please sign in to comment.