Contents

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) -> Subprogress

Parameters

  • portionOfParentTotal:

    The portion of totalCount to be delegated to the Subprogress.

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.