close

fun close()(source)

Closes the queue. The consumer loop exits after draining remaining items.