subprogress(assigningCount:)
Returns a Subprogress representing a portion of self which can be passed to any method that reports progress.
Declaration
final func subprogress(assigningCount portionOfParentTotal: Int) -> SubprogressParameters
- portionOfParentTotal:
The portion of
totalCountto be delegated to theSubprogress.
Return Value
A Subprogress instance.
Discussion
If the Subprogress is not converted into a ProgressManager (for example, due to an error or early return), then the assigned count is marked as completed in the parent ProgressManager.