Sorry if discussion on pika is out of scope of this mailing-list, but I thought it preferential to mailing Tony directly.<div><br></div><div>I'm use pika's asyncore programming model, and find it an excellent model for dealing with connection & channel setup/teardown.<div>
<br></div><div>I have an issue on the channel state callback, which currently passes the ChannelHandler() as a parameter to the callback. As I understand it, the ChannelHandler() is not an object intended for client app usage, and does not that I can see provide any methods useful to the client app.</div>
<div><br></div><div>As it works now, I cannot create a function to allocate a channel (using pika.AsyncoreConnection.channel()) and setup the callbacks (using channel.addStateChangeHandler()), as the channel state callback is called before I can store the reference to the returned Channel() object in my containing object.</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>By replacing the ChannelHandler() object with the Channel() reference instead then the obvious channel operations (declaring of queues etc) could use this parameter and avoid the catch-22 issue.</div>
<div><br></div></div></div><div>If there is general agreement to this change I'm happy to commit the required changes to Github.</div><div><br></div><div>Cheers,</div><div><br></div><div>Sigurd</div>