Contents

becomeCurrent(withPendingUnitCount:)

Sets the progress object as the current object of the current thread, and assigns the amount of work for the next suboperation progress object to perform.

Declaration

func becomeCurrent(withPendingUnitCount unitCount: Int64)

Parameters

  • unitCount:

    The number of units of work for the next progress object that initializes when you invoke Init(parent:userinfo:) in the current thread with this progress object as the containing progress object.

    The number represents the portion of work to perform in relation to the total number of units of work, which is the value of the progress object’s Totalunitcount property. The units of work for this parameter must be the same units of work in the progress object’s Totalunitcount property.

Discussion

Use this method to build a tree of progress objects, as Reporting Progress for Multiple Operations describes.

See Also

Accessing the Current Progress Object