title: What is the difference between "await callingMethodAsync()" and callingMethodAsync().wait()"?
body: <p>I have an async method (name it &quot;callingMethodAsync&quot;). And we all know we can't use await in side lock statement block. However, compiler is fine if I change to &quot;callingMethodAsync.wait()&quot; like in the following sample:</p>
  <pre><code>   lock(lockObject){
       callingMethodAsync.wait();
     }
  </code></pre>
  <p>So I want to know what is the difference between &quot;await&quot; and &quot;wait&quot; in the above. Any help will be appreciated.</p>