Two doors in line with a person-sized space in between works, but may take up too much space. For a home darkroom I'd probably use a door and a curtain.
Often I do DR work at night, so if I know I want to leave the darkroom while somethings going that requires dark, I'll turn out the lights in the adjacent rooms beforehand, then I can open the DR door at will.