Skip to content

Commit 4a18856

Browse files
committed
Add documentation on the new support
1 parent 353aac7 commit 4a18856

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lldb/bindings/interface/SBProgressDocstrings.i

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ Non-deterministic progresses behave the same, but omit the total in the construc
5252
# Explicitly send a progressEnd, otherwise this will be sent
5353
# when the python runtime cleans up this object.
5454
non_deterministic_progress.Finalize()
55+
56+
Additionally for Python, progress is supported in a with statement. ::
57+
with lldb.SBProgress('Non deterministic progress, 'Detail', lldb.SBDebugger) as progress:
58+
for i in range(10):
59+
progress.Increment(1)
60+
# The progress object is automatically finalized when the with statement
61+
5562
") lldb::SBProgress;
5663

5764
%feature("docstring",

0 commit comments

Comments
 (0)