poison pill
An agreed end marker a producer puts into a queue to tell a consumer to stop.
A sentinel element, distinct from any real item, after which the consumer leaves its take() loop; without one a consumer can't tell "done" from "nothing yet".
See also