Guard subscriptions in the synchronous local event broker with a lock
Guard subscriptions in the synchronous local event broker with a lock

This allows the local event broker to safely iterate through the original list of subscriptions while publishing an event, instead of having to atomically make a shallow copy every time.

agronholm/apscheduler