mirror of
https://github.com/samsonjs/AsyncMonitor.git
synced 2026-03-25 08:25:47 +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() {
|
||||
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))%")
|
||||
}.store(in: &cancellables)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue