Hey friends! I’m super interested in this project for use in my home, which is a school bus. I’m working my way through the code here.
I’m looking at ServiceRegistry._event_to_service_call
, which is decorated @asyncio.coroutine
. This is a tough pattern to read properly because it’s effectively a goto. The caller, Task._step
, doesn’t scope the event
, so it’s impossible from the stack alone to determine where the event
object got instantiated.
For my part, this is the prototypical example of where Twisted beats asyncio.
Anyway, in my pursuit of the event
object, I put a breakpoint in Event.__init__()
. Am I seeing correctly that, approximately very second, a “time_changed” event is emitted? Or is this some consequence of my breakpoint?
If so, this is an interesting architecture decision. What can you tell me about it?