Skip to content

Commit

Permalink
Remove default capacity for SignalProducer.replayLazily()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdiep committed Jan 20, 2016
1 parent 83076e1 commit ca36672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactiveCocoa/Swift/SignalProducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ extension SignalProducerType {
///
/// This operator has the same semantics as `SignalProducer.buffer`.
@warn_unused_result(message="Did you forget to call `start` on the producer?")
public func replayLazily(capacity: Int = Int.max) -> SignalProducer<Value, Error> {
public func replayLazily(capacity: Int) -> SignalProducer<Value, Error> {
precondition(capacity >= 0, "Invalid capacity: \(capacity)")

var producer: SignalProducer<Value, Error>?
Expand Down

0 comments on commit ca36672

Please sign in to comment.