Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

ProgressMonitor handling in RTC API in case of 'canceled' state

Hi,
I was wondering whether there is a rule of thumb I can follow when using RTC API that uses an IProgressMonitor for showing progress and providing support for cancelation.

Can you share you experience what the API (resp. that part that you refer to) does in case the progress monitor gets into state 'canceled'. Does the RTC code then throw an OperationCanceledException, does it simply stop asap or does it ignore it?

Thank you

0 votes



One answer

Permanent link
Ideally, the operation would stop as soon as it reaches some "safe" state, but my personal (very limited :-) experience is that there are some code contexts where it is just ignored, and other contexts where the operation stops at some safe intermediate point (sometimes a significant amount of time will have elapsed before it reaches a safe intermediate point).   If you describe the specific API being called, we could try to find out a more specific answer.  Or were you wondering how your code should act when it gets passed in a progress monitor?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Feb 04 '16, 10:50 a.m.

Question was seen: 2,349 times

Last updated: Feb 04 '16, 8:00 p.m.

Confirmation Cancel Confirm