sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Leverage new Lock types

Open jamescrosswell opened this issue 4 months ago • 0 comments

C# 13 includes a new Lock type intended to be used with the lock keyword.

Using Lock types as lock objects, the compiler can perform some optimisations that aren't possible when using standard object lock objects. It's a small thing, but we should probably replace the lock objects in our SDK to enable these optimisations.

jamescrosswell avatar Oct 16 '24 20:10 jamescrosswell