You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The URI class is immutable, and glancing at the code it seems as though thread-safety is considered. However, the URI docs say "Any instance members are not guaranteed to be thread safe".
Is that really the case? If not, and the class is thread-safe, the docs should be updated.
Activity
svick commentedon Nov 25, 2017
As far as I can tell from the discussion at https://github.com/dotnet/corefx/issues/13107, even though
Uridoes use locks, it is not thread-safe.I believe the steps to take here are:
Urino longer locks on astring.Urifor thread-safety.Uriactually contains code that is not thread-safe, fix it.davidsh commentedon Nov 25, 2017
Also feel free to submit doc suggestions directly to the new docs location:
https://docs.microsoft.com/en-us/dotnet/api/system.uri?view=netcore-2.0
Clicking on the 'Edit' link will take you to the repo and allow you to submit PR's for suggestions.
ohadschn commentedon Nov 25, 2017
@davidsh thank you for the reference, but as svick explained, these is engineering work involved before the docs can be updated.
[-]URI thread safety documentation[/-][+][Uri] URI thread safety documentation[/+]