class Marmot::OnChannelTask(T)
- Marmot::OnChannelTask(T)
- Marmot::Task
- Reference
- Object
Defined in:
marmot.crConstructors
Instance Method Summary
-
#value : T | Nil
Gets the value received on the channel.
Constructor Detail
Instance Method Detail
def value : T | Nil
#
Gets the value received on the channel.
If the channel is closed while waiting, a nil
value will saved here, and
the task will run one last time.