Finish method

  • 13 May 2015
  • 1 reply
  • 0 views

Badge +1

what is the difference between  Finish() and Finish(bool sync) ? 

 

lets us say i have piece of code

 

   ServerItem servItem = connection.OpenServerItem(serialNumber);

   servItem.Finish();

     (or)

   servItem.Finish(true or false) ; 

 

will wait for my operation to complete? what does that boolean value signify?

 

 


1 reply

Badge +10

Hi hsarva,


 


Looking at the context here, I would presume that the 'sync' argument determines whether the call is made synchronously or asynchronously.  I dug through the docs a bit and I couldn't find a specific section dealing with the serverItem object.


 


Granted, as it's called at the completion of the item, I don't think it will really have much of an impact whether set to true or false.  Asynchronous calls could potentially save time if we are waiting for a response, but if the item is being closed or finished anyway, that final portion shouldn't have much impact.


 


Hopefully someone with more knowledge in this area, or perhaps a link to the correct doc can chime in here.



Regards,


 


Mike

Reply