This module implements "named locks".
A named lock is like a normal lock (
MVar ()) but is created
on demand. This is useful when you have a potentially infinite
number of resources that should not be used concurrently.
For example, in a web-server you might create a new lock for each database query so that the same query is only run once.
Creating Lock Pools
Working with Named Locks
Grab the lock with given name. Blocks until the lock becomes available.
Release the lock with the given name.
The released lock must have previously been grabbed via