This project is deprecated.
This repository will be archived once it is no longer used by other Dogmatiq projects.
Cosyne includes variants of sync.Mutex
and RWMutex
that accept a
context.Context
parameter, which allows support for cancellation and deadlines
while acquiring locks.
The mutex implementations also support "try lock" semantics, allowing the user to acquire the lock only if doing so would not block.