You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,23 @@
1
1
# master
2
2
*Please add new entries at the top.*
3
3
4
-
1.`SignalProducer.startWithSignal` now returns the value of the setup closure.
4
+
1.`Signal` now uses `Lifetime` for resource management. (#404, kudos to @andersio)
5
+
6
+
The `Signal` initialzer now accepts a generator closure that is passed with the input `Observer` and the `Lifetime` as its arguments. The original variant accepting a single-argument generator closure is now obselete. This is a source breaking change.
7
+
8
+
```swift
9
+
// New: Add `Disposable`s to the `Lifetime`.
10
+
let candies = Signal<U, E> { (observer: Signal<U, E>.Observer, lifetime: Lifetime) in
11
+
lifetime += trickOrTreat.observe(observer)
12
+
}
13
+
14
+
// Obsolete: Returning a `Disposable`.
15
+
let candies =Signal { (observer: Signal<U, E>.Observer) -> Disposable?in
16
+
return trickOrTreat.observe(observer)
17
+
}
18
+
```
19
+
20
+
1.`SignalProducer.startWithSignal` now returns the value of the setup closure. (#533, kudos to @Burgestrand)
5
21
6
22
# 2.1.0-alpha.2
7
23
1. Disabled code coverage data to allow app submissions with Xcode 9.0 (see https://github.com/Carthage/Carthage/issues/2056, kudos to @NachoSoto)
0 commit comments