lvh / async-pep

Draft PEP for asynchronous IO
ISC License
62 stars 7 forks source link

Missing timer #27

Open flub opened 12 years ago

flub commented 12 years ago

I tried implementing AgentX following this draft, but the lack of a timer makes it pretty much impossible. The problem is that the protocol need to handle timeouts like a missing response etc. But with the pep as it stands you can not do this in the protocol class. I ended up extending the transport/protocol interface so the protocol can tell the transport the next time it needs to be woken up. Not sure that is the best way though.

glyph commented 11 years ago

Can you provide a reference to how you extended it? Protocols don't just 'wake up', they have data delivered to them.