Skip to main content

delayed_sum_with_soft_guard

Sum the iterable of numbers.

def delayed_sum_with_soft_guard(
numbers: iterable,
pause_time: number = 1
) - > number

Sum the iterable of numbers.

Parameters

NameTypeDescription
numbersiterableAn iterable collection of numeric values to be summed.
pause_timenumber = 1The duration in seconds to pause execution before calculating the sum.

Returns

TypeDescription
numberThe sum of the provided numbers, or 0 if the task execution exceeds the soft time limit.