Where the API, let's say one method: "DoSomething ()". There must be two versions of the method: asynchronous and synchronous. We should encourage API users to use async, so synchronization should probably be more complex and explicit. So the problem is how we should call this pair. To the date weve came up with:
- DoSomethingAndWaitForResult () / DoSomething ()
- DoSomething () / DoSomethingAsync ()
- DoSomethingSync () / DoSomething ()
- DoSomething () / RequestSomething ()
None of the above schemes seems to us optimal. Any suggestions?
Update BTW feel free to post one of the answers above if it suits you.
source share