rpc: add Done and Err methods
rpc: add Done and Err methods

These mirror the methods in Context and are similarly useful.  In order
to implement graceful shutdown, it is much easier to block on a channel
receive than to block on a method call.  This allows selects on cancel
and done.

zombiezen/go-capnproto2,zombiezen/go-capnproto2