one word to describe lock

If I needed a word that could be used equally to describe the action of locking or unlocking, this word could be used equally to describe its purpose.

Context is naming a class in a program that would contain both actions of locking and unlocking a record.

My primary language isn’t English and I don’t know if the one I have identified as English is

that.

Asked on December 24, 2021 in Word choice.
Add Comment
2 Answer(s)

I’d call it “LockManager”, which suggests it’s in charge of removing or adding the

locked status.

Answered on December 24, 2021.
Add Comment

What is the word you are looking for is toggle.

(Toggle lock on or off)

This is a verb that is used within computing to indicate something is alternating between discrete states – I’ve only ever known it to be used in a binary sense (typically for on/off switches).

Answered on December 24, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.