File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11#Upcoming Release
22
3+ #4 .0.1
4+ ** API Changes:**
5+
6+ - ` dispatch(_ stream:) ` now returns a subscription reference.
7+
38#3 .0.6
49** Breaking API Changes:**
510
Original file line number Diff line number Diff line change @@ -35,9 +35,12 @@ open class Store<ObservableProperty: ObservablePropertyType> {
3535 }
3636 }
3737
38- public func dispatch< S: StreamType > ( _ stream: S ) where S. ValueType: Action {
39- disposeBag += stream. subscribe { [ unowned self] action in
38+ @discardableResult
39+ public func dispatch< S: StreamType > ( _ stream: S ) -> SubscriptionReferenceType ? where S. ValueType: Action {
40+ let disposable = stream. subscribe { [ unowned self] action in
4041 self . dispatch ( action)
4142 }
43+ disposeBag += disposable
44+ return disposable
4245 }
4346}
You can’t perform that action at this time.
0 commit comments