ExecuteNextAsync freezes/hangs in Azure Cosmos DB [duplicate]
问题 This question already has answers here : An async/await example that causes a deadlock (5 answers) Closed 11 months ago . When you create a new cosmos DB some code samples are shown in Azure. Most of the code works. However I have this single function that just freezes/hangs when Executed. Any ideas how to solve or troubleshoot? Code: public async Task<IEnumerable<T>> GetItemsAsync(Expression<Func<T, bool>> predicate, string collection) { IDocumentQuery<T> query = Client.CreateDocumentQuery<T