mirror of
https://github.com/samsonjs/AsyncMonitor.git
synced 2026-04-27 14:57:39 +00:00
Make sure ReadmeExamples are up to date
This commit is contained in:
parent
5e8be95547
commit
b975564d57
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class KVOExample {
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
let progress = Progress(totalUnitCount: 42)
|
let progress = Progress(totalUnitCount: 42)
|
||||||
progress.monitorValues(for: \.fractionCompleted) { fraction in
|
progress.monitorValues(for: \.fractionCompleted, options: [.initial, .new]) { fraction in
|
||||||
print("Progress is \(fraction.formatted(.percent))%")
|
print("Progress is \(fraction.formatted(.percent))%")
|
||||||
}.store(in: &cancellables)
|
}.store(in: &cancellables)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue