I think something like thats been done before with Pyglet and Twisted using its coiterate function, I posted an example of it awhile ago here <https://groups.google.com/forum/#!searchin/pyglet-users/coiterate|sort:date/pyglet-users/xGlu-niqSIA/gVmNg7q_BwAJ>. I'm not certain but you may be able to get similar results using asyncio's coroutine functions <https://docs.python.org/3/library/asyncio-task.html>.
On Saturday, May 27, 2017 at 3:05:20 AM UTC-4, [email protected] wrote: > > Hello, pyglet-users. > I'd appreciate it if someone could point me in the right direction in > getting async networking playing nicely with pyglet. Where in the EventLoop > would it be best to process network i/o? Should I overload EventLoop.idle() > or would it be better to wrap some part of pyglet's EventLoop execution in > an asyncio.Task and just use asyncio's event loop for the whole thing? > Thanks in advance for your input! > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
