receive(long wait) Receive a message from the channel.
Parameters: wait - the length of time to wait for a message if there are noneimmediately available, use -1 for no wait.
Receive a message from the channel.
Parameters: wait - the length of time to wait for a message if there are noneimmediately available, use -1 for no wait. a message or null if there are no messages