-
Notifications
You must be signed in to change notification settings - Fork 8
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
Iterating multiple times over a taskSeq { ... } raises InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed. #39
Labels
Milestone
Comments
abelbraaksma
added a commit
that referenced
this issue
Oct 22, 2022
abelbraaksma
changed the title
Iterating multiple times over a taskSeq { ... } computation expression leads to: InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
Iterating multiple times over a taskSeq { ... } raises InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
Oct 22, 2022
abelbraaksma
added
bug
Something isn't working
help wanted
Extra attention is needed
labels
Oct 22, 2022
This was referenced Oct 22, 2022
Closed
abelbraaksma
added a commit
that referenced
this issue
Oct 22, 2022
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As in the title. Any of these errors only happen when multiple iterations are attempted and the source is a
taskSeq
CE, not when the source is a user-defined or library definedIAsyncEnumerator<_>
, used with theTaskSeq
library functions.I already started investigating this issue and it has to do with properly resetting state when "reaching the end" and when "getting an enumerator over the same resource". See
#36continued: #42.Operation not valid error,
MoveNextAsync()
Operation not valid error, multiple
GetAsyncEnumerator()
withMoveNextAsync()
Transition State error
The text was updated successfully, but these errors were encountered: