buuren / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

Separate methods for sync and async tasks #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Methods triggering tasks returns different object types depending on the value 
of the sync_run parameter which might be confusing. These should probably be 
implemented on separate methods.

If this is implemented, the sync_run parameter should still be supported for a 
few versions (showing a deprecation warning).

Pros:
 - clarity, a method will only return a specified type of result

Cons:
 - lots of new methods will be added. E.g. clone_async (or clone_task), revert_to_snapshot_async (revert_to_snapshot_task), etc. This might be even more confusing
 - handle backwards compatibility

Related to: https://code.google.com/p/pysphere/issues/detail?id=20

Original issue reported on code.google.com by argo...@gmail.com on 10 Sep 2012 at 3:33