Skip to content

Commit

Permalink
Signal.Event: changed to @frozen (#841)
Browse files Browse the repository at this point in the history
This `enum` isn't expected to change. It's important to mark it as `@frozen`
so that clients don't get warnings whem compiling with `BUILD_LIBRARY_FOR_DISTRIBUTION`,
which might be required in a future version of Carthage supporting Catalyst.
(See Carthage/Carthage#3235).
  • Loading branch information
NachoSoto committed Oct 5, 2021
1 parent c43bae3 commit e3916d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Event.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ extension Signal {
///
/// Signals must conform to the grammar:
/// `value* (failed | completed | interrupted)?`
@frozen
public enum Event {
/// A value provided by the signal.
case value(Value)
Expand Down

0 comments on commit e3916d7

Please sign in to comment.