Skip to content

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.

3 participants