Closed andreytkachenko closed 3 years ago
Sure, that seems reasonable to me. Want to submit a PR that also adds some documentation to that method?
I think it's worthwhile to explicitly call out there that holding on to the ReadGuard
continues to block progress for a waiting writer.
I found this method common and very useful when you need return a mapped reference to certain value from the map.