You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following methods don't have synchronous equivalents:
CreateDatabaseIfNotExistsAsync()
CosmosDatabase.DeleteAsync()
CreateContainerIfNotExistsAsync()
CosmosResultSetIterator<>.FetchNextSetAsync()
CosmosQueryResponse<>.FetchNextSetAsync()
CreateItemAsync<>()
ReplaceItemAsync<>()
DeleteItemAsync<>()
Since EF Core provides both synchronous and asynchronous APIs, in the EF Core provider implementation we need to choose between throwing NotSupportedException and applying workarounds that can cause threads to block and deadlocks.
@kirankulkarni747 Calling an async method from a sync method requires some kind of blocking (like Task.Wait()) this goes against best practices as it can cause deadlocks. Using ConfigureAwait(false) to avoid deadlocks is brittle and can't be relied on.
The following methods don't have synchronous equivalents:
Since EF Core provides both synchronous and asynchronous APIs, in the EF Core provider implementation we need to choose between throwing NotSupportedException and applying workarounds that can cause threads to block and deadlocks.
This issue existed in previous versions of the SDK, and still applies to Cosmos SDK version 3.0.0.1-preview.
cc @AndriySvyryd @ajcvickers @kirillg
The text was updated successfully, but these errors were encountered: