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