z_try_recv
should return z_result
with possible errors E_NODATA
and E_CLOSED
#568
Labels
release
Part of the next release
Currently
z_try_recv
functions for channels returnsbool
which isfalse
when channel is closed. No data situation is handled by testing received data for gravestone state (withz_check
)After discussion with @DenisBiryukov91 and @sashacmc it was decided that no data situation should be another kind of error. This allows to not call
z_check
on received data.This removes the only place where
z_check
is absolutely necessary. After this change we are free to makez_check
rework for #492The text was updated successfully, but these errors were encountered: