Function Channel.close
Closes the channel.
void close();
void close() shared;
A closed channel does not accept any new items enqueued using put
and
causes empty
to return fals
as soon as all preceeding elements have
been consumed.