Sends data along with a close action to the channel.
The data to be sent.
The action to be executed when the data is no longer needed.