mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-24 04:03:03 -04:00
Simplify init
This commit is contained in:
parent
6641a61b3c
commit
8fd86f1769
@ -53,11 +53,9 @@ final class ActivityService {
|
||||
}
|
||||
|
||||
private init(
|
||||
publisher: @MainActor @escaping () -> CurrentValueSubject<[UUID: DownloadState], Never> = {
|
||||
DownloadService.shared.progress.publisher
|
||||
},
|
||||
updateFrequency: Double = 2,
|
||||
averageDownloadSpeedFromLastSeconds: Double = 30
|
||||
publisher: @MainActor @escaping () -> CurrentValueSubject<[UUID: DownloadState], Never>,
|
||||
updateFrequency: Double,
|
||||
averageDownloadSpeedFromLastSeconds: Double
|
||||
) {
|
||||
assert(updateFrequency > 0)
|
||||
assert(averageDownloadSpeedFromLastSeconds > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user