Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove requirement for Swift 5.3 #823

Merged
merged 2 commits into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# master

1. Fixed issue with `SignalProducer.Type.interval()` making Swift 5.3 a requirement. (#823 kudos to @mluisbrown)

*Please add new entries at the top.*

# 6.6.0
Expand Down
4 changes: 3 additions & 1 deletion Sources/SignalProducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3081,7 +3081,9 @@ extension SignalProducer where Error == Never {
)
}
}
}

extension SignalProducer where Error == Never, Value == Int {
/// Creates a producer that will send the sequence of all integers
/// from 0 to infinity, or until disposed.
///
Expand All @@ -3098,7 +3100,7 @@ extension SignalProducer where Error == Never {
public static func interval(
_ interval: DispatchTimeInterval,
on scheduler: DateScheduler
) -> SignalProducer where Value == Int {
) -> SignalProducer {
.interval(0..., interval: interval, on: scheduler)
}
}