from Hacker News

Golang Generic Mutex

by alain_gilbert on 4/24/25, 12:39 AM with 1 comments

  • by alain_gilbert on 4/24/25, 12:39 AM

    I submit again this library that I made since I added the much needed "value mutex" that do not need to be initialized (like you would use a normal sync.Mutex)

    Single file, easily copyable in your project, providing generic strongly typed mutex which unlock much safer patterns.