fsprojects / FSharp.Data

F# Data: Library for Data Access
https://fsprojects.github.io/FSharp.Data
Other
806 stars 288 forks source link

Use separate lock-object #1493

Closed Thorium closed 7 months ago

Thorium commented 8 months ago

Trial to fix #1466: Do use separate lock-object instead of locking the array itself.

The PR uses the best practices of .NET, see: Jeff Richter book "CLR Via C#" chapter on locks. Or e.g. https://stackoverflow.com/questions/1873201/why-are-locks-performed-on-separate-objects

Thorium commented 8 months ago

The CI build is failing for "BuildFailedException: Target 'GenerateDocs' failed." However that is a separate issue, not related to this PR.