This PR contains changes to avoid panicking with DedicatedClient should not be used after recycled, and return an error (specifically, ErrClosing) instead.
Please take a look. The thing I personally not sure whether it's semantically correct to use ErrClosing in these places. At first glance seems logical, but probably will require adjustments. Also, #586 mentions only panic for Do call, but I guess it should be extrapolated to all methods to fully eliminate panic.
Relates #586
This PR contains changes to avoid panicking with
DedicatedClient should not be used after recycled
, and return an error (specifically,ErrClosing
) instead.Please take a look. The thing I personally not sure whether it's semantically correct to use
ErrClosing
in these places. At first glance seems logical, but probably will require adjustments. Also, #586 mentions only panic forDo
call, but I guess it should be extrapolated to all methods to fully eliminate panic.