kazoo icon indicating copy to clipboard operation
kazoo copied to clipboard

Twisted handler

Open offero opened this issue 8 years ago • 2 comments

It would be great to also add a Twisted async handler to the library. I am guessing that I would have to use the threading handler otherwise in my twisted applications, but it would be awesome to support it out of the box natively.

offero avatar Jun 16 '17 14:06 offero

I attempted to start this work by creating a twisted handler but quickly discovered the close coupling to gevent in kazoo.interfaces makes this a rather hefty task.

I am open to advice on this issue as I would love to be able to integrate this library into our twisted-based applications.

mattwwarren avatar Jun 20 '17 15:06 mattwwarren

One of the main issues is that twisted doesn't allow in-place interrupts which is what the gevent bits rely on. I think a bigger effort will have to be made to use asyncio so that twisted compatibility can be an offshoot of that work.

bbangert avatar Jun 20 '17 16:06 bbangert