func LockWithTimeout(timeout time.Duration) LockOption {
	return func(lockOptions *lockOptions) {
		lockOptions.timeout = timeout
	}
}
// LockWithTimeout returns a new LockOption that sets the lock timeout.
//
// Lock returns error if the lock cannot be acquired after this amount of time.
// If this is set to 0, the lock will never timeout.
LockWithTimeout returns a new LockOption that sets the lock timeout.

Lock returns error if the lock cannot be acquired after this amount of time.
If this is set to 0, the lock will never timeout.
// LockWithTimeout returns a new LockOption that sets the lock timeout . // // Lock returns error if the lock cannot be acquired after this amount of time . // If this is set to 0 the lock will never timeout .
func LockWithTimeout(timeout time.Duration) LockOption {
	return func(lockOptions *lockOptions) {
		lockOptions.timeout = timeout
	}
}
func LockWithTimeout ( timeout time . Duration ) LockOption { return func ( lockOptions * lockOptions ) { lockOptions . timeout = timeout } }
LockWithTimeout returns a new LockOption that sets the lock timeout.
LockWithTimeout returns a new LockOption that sets the lock timeout .