class

Marmot::OnChannelTask(T)

Inherits Marmot::Task < Reference < Object

Constructors

new(channel : Channel(T), callback : Callback)
Source

Instance methods

value

Gets the value received on the channel.

If the channel is closed a nil value will saved here, and the task will run one last time.

Source