I've added a testcase for this situation. Current implementation will just ignore pending error.
It should be safe to use pure read of cerr chans in these cases. Functions reach final return statements only when c is closed. So UnmarshalToChan returned successfully and wrote to cerr.
I've added a testcase for this situation. Current implementation will just ignore pending error.
It should be safe to use pure read of cerr chans in these cases. Functions reach final return statements only when c is closed. So UnmarshalToChan returned successfully and wrote to cerr.