Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

stephentoub
Copy link
Member

Some appear to be dead code, others can be replaced by use of ConfigureAwaitOptions. I did not replace ones that appeared to be used by signalr client code as well, as that would have required ifdef'ing.

@ghost ghost added the area-signalr Includes: SignalR clients and servers label Jun 12, 2023
@BrennanConroy
Copy link
Member

Can

be updated too?

@stephentoub
Copy link
Member Author

Can https://github.com/dotnet/aspnetcore/blob/1dd4224807819dcc4f86b2b5f9976546bd623c7d/src/SignalR/common/Http.Connections/src/Internal/HttpConnectionContext.cs#L592 be updated too?

It could. It wouldn't really improve anything, though. As a micro-optimization, if you changed that and also added a ConfigureAwait to the subsequent await, you might shave a few bytes off of the state machine created for this async method.

Some appear to be dead code, others can be replaced by use of ConfigureAwaitOptions.  I did not replace ones that appeared to be used by signalr client code as well, as that would have required ifdef'ing.
@adityamandaleeka
Copy link
Member

@stephentoub Ready to merge?

@stephentoub
Copy link
Member Author

yup

@stephentoub stephentoub merged commit c0d66af into dotnet:main Jun 15, 2023
@stephentoub stephentoub deleted the customawaiters branch June 15, 2023 01:17
@ghost ghost added this to the 8.0-preview6 milestone Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants