Contents

summary(of:)

Returns a summary for a custom duration property across the progress subtree.

Declaration

final func summary<P>(of property: KeyPath<ProgressManager.Properties, P.Type>) -> P.Summary where P : ProgressManager.Property, P.Summary == Duration, P.Value == Duration

Parameters

  • property:

    The type of the duration property to summarize. Must be a property where the value type is Duration and the summary type is Duration.

Return Value

A Duration summary value for the specified property.

Discussion

This method aggregates the values of a custom duration property from this progress manager and all its children, returning a consolidated summary value.