class NBChannel(T)
- NBChannel(T)
- Channel(T)
- Reference
- Object
Defined in:
nbchannel.crConstant Summary
-
VERSION =
"0.1.0"
Constructors
Instance Method Summary
-
#receive? : T | Nil
Receives a value from the channel.
Constructor Detail
Instance Method Detail
def receive? : T | Nil
#
Description copied from class Channel(T)
Receives a value from the channel. If there is a value waiting, it is returned immediately. Otherwise, this method blocks until a value is sent to the channel.
Returns nil
if the channel is closed or closes while waiting for receive.