ZocDoc/ZocBuild.Database — pull request #2 by david-chenevert-zocdoc (2014-11-19 20:02:28+00:00)
Title: block at the bottom of the "await" stack instead of the top. 

There is a problem in the scout code, which is worked-around in this PR.
A final fix will probably require more investagation.

The symptom: The task that is passed up the call stack does not block, e.g. here:

https://github.com/ZocDoc/Scout/blob/master/Scout.Common/Actions/DatabaseObjects/Wrappers/DatabaseWrapper.cs#L55

Experimentally, if the code calls "Wait()" or "Return()", down at the bottom (in `ExecuteNonQueryAsync`), it will (correctly) block.