There is a technique used occasionally in (often comic) writing, whereby two different meanings of the same word are combined in a sentence to create a sense of surprise in the reader.
My particular favourite comes from the Flanders and Swann song "Madeira M'Dear" (https://www.youtube.com/watch?v=OW_zi8n4HDQ):
"And he said as he hastened to put out the cat, the wine, his cigar and the lamps"
(So the cat is removed, the wine is brought in, and the cigar and lamps are extinguished)
Is there a proper name for this as a literary device?