Skip to content
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

Revert "Prevent creating two task waiting chains when joins AsyncLazy." #1011

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

lifengl
Copy link
Member

@lifengl lifengl commented Mar 29, 2022

Reverts #999

I have concern on this PR to have potential impact to the performance of the product. The reason:

when this code is executed on UI thread context:
await asyncLazy.GetValueAsync().ConfigureAwait(false)

and the inner task of the async lazy completes on a thread pool. Before this code, this continuation doesn't need back to the UI thread, but joinableTask.JoinAsync would need back to the UI thread to complete. I think it is unnecessary in JoinAsync code, but it will require further changes to get this more complicated.

@lifengl lifengl merged commit 1a5b137 into main Mar 30, 2022
@lifengl lifengl deleted the revert-999-dev/lifengl/preventTwoTaskWaitingChains branch March 30, 2022 00:12
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.

None yet

2 participants