grpc-swift
grpc-swift copied to clipboard
Adopt `Mutex` where possible
Motivation:
Swift 6 has a Mutex which we can use in place of LockedValueBox or NIOLockedValueBox in a bunch of places.
Modifications:
- Use
Mutexwhere possible - This causes a number of other changes too as
Mutexdoesn't allocate: the allocations move to the type holding it instead. This makes sense as the objects which were previously structs didn't have value semantics.
Result:
Fewer uses of our own lock, no uses of NIOs lock