Skip to content

Commit

Permalink
Beta 5: ReplaySubject temp-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tcldr committed Jul 30, 2019
1 parent e7d19d9 commit d6b6087
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Entwine/Operators/ReplaySubject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ extension ReplaySubject: Publisher {

extension ReplaySubject: Subject {

public func send(subscription: Subscription) {
subscription.request(.unlimited)
}

public func send(_ value: Output) {
guard status == .active else { return }
replayValues.addValueToBuffer(value)
Expand Down

0 comments on commit d6b6087

Please sign in to comment.