package redsync_test
import "git.bit5.ru/backend/redsync"
func ExampleMutex() {
m, err := redsync.NewMutexWithGenericPool("FlyingSquirrels", pools)
if err != nil {
panic(err)
}
err = m.Lock()
defer m.Unlock()
// Output: