cog
201bb7c6 - factor out _events_lock to avoid holding the lock for too long (#1802)

Commit
1 year ago
factor out _events_lock to avoid holding the lock for too long (#1802) we're currently holding the lock the whole time an iterator is running; it needs to be held separately for each send. instead of doing a bunch of indents, just factor out the locked send into a separate class although the lock isn't actually shared between processes and the more lightweight threading.Lock can be used, that means it has to be created in run() rather than __init__
Author
Parents
Loading