Closed Fulgen301 closed 1 year ago
@microsoft-github-policy-service agree
Unfortunately, a project maintainer is not currently available to review this pull request. Please see the contributing guide for more information. Feel free to keep the conversation going on the related issue.
The https://github.com/microsoft/wil library is where we've been collecting implementation helpers such as this. You might want to open an issue on that repo for consideration.
The https://github.com/microsoft/wil library is where we've been collecting implementation helpers such as this. You might want to open an issue on that repo for consideration.
Yes - this looks much more appropriate for wil or https://github.com/microsoft/cpp-async as it doesn't really require cppwinrt on its own. Looking forward to the PR on either of those places!
Feels weird to have to IAsyncOperation support be built-in but not IIterable. Perhaps both should be moved to wil?
Async coroutine support is fundamental to C++/WinRT for both consumption and production. Generator support for iteration, while cool, has very narrowly defined application.
This implements #1278.
IIterable::First()
throwsE_CHANGED_STATE
if it is called more than one time since the coroutine has already been resumed at that point; however, I am unsure whether this violates the API contract: