-
Notifications
You must be signed in to change notification settings - Fork 3
IAsyncEnumerable on DelayedQuery #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…uery while asynchronously prefetching data
|
Looks like it duplicates Generally we add a new code into DataObject only when it is impossible or difficult to get the the result by existing DO API. |
|
We need IAsyncEnumerable implementation here as if it is used inside a Prefetch, which is a fairly common case, it is used as the IEnumerable source and will fall back to a synchronous implementation even in a chain of asynchronous calls. The new unit test shows that behavior. |
|
You are right |
|
@snaumenko-st could you please create a clone of this PR into the Upstream repo https://github.com/dataObjects-net/dataobjects-net ? |
Introduce IAsyncEnumerable on DelayedQuery to utilize async Session query while asynchronously prefetching data.