Skip to content

Fix UnityEventHandlerAsyncEnumerator cancellation#418

Merged
neuecc merged 1 commit into
Cysharp:masterfrom
adarapata:fix-asyncenumerable-cancel
Nov 1, 2022
Merged

Fix UnityEventHandlerAsyncEnumerator cancellation#418
neuecc merged 1 commit into
Cysharp:masterfrom
adarapata:fix-asyncenumerable-cancel

Conversation

@adarapata
Copy link
Copy Markdown
Contributor

refs

The error in the above issue occurred during the next implementation.

_button.OnClickAsAsyncEnumerable()
    .ForEachAsync(_ => print("push")), token)
    .Forget();

This may be due to the fact that the first TOKEN was used to handle the cancellation of the second TOKEN.

I could see it working in my hand, but I need you to see if it's correct. 🙏

@neuecc
Copy link
Copy Markdown
Member

neuecc commented Nov 1, 2022

Oh...!
Thanks, I'll merge and release soon!

@neuecc neuecc merged commit 710d0d9 into Cysharp:master Nov 1, 2022
@adarapata adarapata deleted the fix-asyncenumerable-cancel branch November 1, 2022 11:40
@neuecc
Copy link
Copy Markdown
Member

neuecc commented Nov 1, 2022

released at 2.3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants