Allow draining the buffer of a closed channel
Add a test for unblocking readers
Add a test for closed writers