MCPcopy Index your code
hub / github.com/aws/aws-cli / invoke_progress_callbacks

Function invoke_progress_callbacks

awscli/s3transfer/utils.py:130–143  ·  view source on GitHub ↗

Calls all progress callbacks :param callbacks: A list of progress callbacks to invoke :param bytes_transferred: The number of bytes transferred. This is passed to the callbacks. If no bytes were transferred the callbacks will not be invoked because no progress was achieved.

(callbacks, bytes_transferred)

Source from the content-addressed store, hash-verified

128
129
130def invoke_progress_callbacks(callbacks, bytes_transferred):
131 """Calls all progress callbacks
132
133 :param callbacks: A list of progress callbacks to invoke
134 :param bytes_transferred: The number of bytes transferred. This is passed
135 to the callbacks. If no bytes were transferred the callbacks will not
136 be invoked because no progress was achieved. It is also possible
137 to receive a negative amount which comes from retrying a transfer
138 request.
139 """
140 # Only invoke the callbacks if bytes were actually transferred.
141 if bytes_transferred:
142 for callback in callbacks:
143 callback(bytes_transferred=bytes_transferred)
144
145
146def get_filtered_dict(

Callers 6

_mainMethod · 0.90
readMethod · 0.85
seekMethod · 0.85
readMethod · 0.85

Calls

no outgoing calls