Lock locks m. In case it returns an error on failure, you may retry to acquire the lock by calling this method again.
()
| 63 | |
| 64 | // Lock locks m. In case it returns an error on failure, you may retry to acquire the lock by calling this method again. |
| 65 | func (m *Mutex) Lock() error { |
| 66 | return m.LockContext(context.Background()) |
| 67 | } |
| 68 | |
| 69 | // LockContext locks m. In case it returns an error on failure, you may retry to acquire the lock by calling this method again. |
| 70 | func (m *Mutex) LockContext(ctx context.Context) error { |