recv_until
Description:
Receives a value from the channel. This method blocks the thread until a value is received, the channel is closed and has no more data, or end_time has passed.
This method is the same as recv except there is a timeout.
Errors:
- ChannelError.CLOSED
If the channel has been closed and no more data.
- ChannelError.TIMEOUT
If end_time has passed.
Parameters:
end_time |
the monotonic time to wait until |
Returns:
the result which holds a value if succeeded, or an error if failed. |