Allows to set close channel to the given channel.
Set the handler to be executed on this channel when a close channel event arrives. If you call several times to this function, the handler and user data will be changed to passed in data. So you can use this function to reset handlers definition on this channel.
|channel ||the channel to configure |
|close ||the close handler to execute |
|user_data ||the user data to pass to close execution |