Attempts to send a value into the channel. This method doesn't block the thread and returns immediately, regardless of success.
Errors:
If the channel has been closed.
If the channel is full (bufferd channel), or there are no receive operations waiting for send operations (unbuffered channel).
data |
a value |
the result which holds null if succeeded, or an error if failed. |