Sends a value into the channel. This method blocks the thread until the value is sent, the channel is closed, or end_time has passed.
This method is the same as send except there is a timeout.
Errors:
If the channel has been closed.
If end_time has passed.
data |
a value |
end_time |
the monotonic time to wait until |
the result which holds null if succeeded, or an error if failed. |