Handling of attributes bound to event loops #236
Replies: 4 comments
-
My most recent stab at this was to use However, => We could pull in |
Beta Was this translation helpful? Give feedback.
-
The meta'ish idea is to create our own version of This would be more complex than maintaining a plain |
Beta Was this translation helpful? Give feedback.
-
I think one can live with that one, but this surely something that is needed to be documented. |
Beta Was this translation helpful? Give feedback.
-
This is something that needs to be tackled, since unittests are logging currently some misleading error that |
Beta Was this translation helpful? Give feedback.
-
Many TARDIS objects rely on
async
queues, locks and similar to work concurrently. These are a bit of a pain point for programming and maintenance:async
attributes are initialized lazily via caching or manually.async
attributes will break once their loop is gone. This means code does not run as in production (withasyncio.run
) and we can leak state between tests.I've got a practical idea how to simplify both, but at the cost of a bunch of meta'ish code; not ideal for maintenance and probably with some overhead. So I would like to discuss what options we have to go forward.
Beta Was this translation helpful? Give feedback.
All reactions