switchy icon indicating copy to clipboard operation
switchy copied to clipboard

Port to asyncio!

Open goodboy opened this issue 9 years ago • 1 comments

Now that #44 is in we can begin the move to asyncio based apps! I'm thinking most of the built-ins can be implemented as single coroutine instead of namespace defined callbacks.

autobahn has a good read on the contrast with twisted.

goodboy avatar Sep 06 '16 18:09 goodboy

For py2, I'm thinking we can probably follow pep342 as a guide for implementing our own "inline-callbacks" like in twisted. I think we can probably introspect a callback to see if it's a generator instead of using a different decorator.

For py3.5 we'll obviously use proper coroutines and most likely custom futures for suspending until specific events.

goodboy avatar Dec 15 '16 22:12 goodboy