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