leaselocker is Apache 2.0 licensed and accepts contributions via GitHub pull requests.
This document outlines the basics of contributing to leaselocker.
go get github.com/swisscom/[email protected]
Check out how NetBox Operator uses leaselocker to avoid race conditions by using distributed locks: https://github.com/netbox-community/netbox-operator