igrigorik/agent — comment on commit 492632fdc8196ef191fd28a39ebd49e19d82fd8a
File: lib/agent/channel.rb line 86
By nate:

I'm emulating go's channel behavior right here, but I'm not really sure if that's a good idea.

With go, if a channel gets closed while waiting to write to it, you get a panic. If some code is trying to 'receive' on a channel, and it gets closed, then you get a multi-return value like this.

I like it.