Skip to content

Commit

Permalink
Remove requirement for Swift 5.3 (#823)
Browse files Browse the repository at this point in the history
* Fix requirement for Swift 5.3

Make the code compatible with Swift 5.1 and 5.2 again. Resolves #822

* Added entry to Changelog
  • Loading branch information
mluisbrown committed Apr 23, 2021
1 parent 6af9fec commit 92a56d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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)
}
}

0 comments on commit 92a56d0

Please sign in to comment.