assign(count:to:)
Adds a ProgressReporter as a child, with its progress representing a portion of self’s progress.
Declaration
final func assign(count: Int, to reporter: ProgressReporter)Parameters
- count:
Units, which is a portion of
totalCountdelegated to an instance ofSubprogress. - reporter:
A
ProgressReporterinstance.
Discussion
If a cycle is detected, this will cause a crash at runtime.