Contents

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 of Subprogress.

  • reporter:

    A ProgressReporter instance.

Discussion

If a cycle is detected, this will cause a crash at runtime.