def action(scheduler, state=None): nonlocal is_stopped with lock: for observer in observers: notification.accept(observer) if notification.kind in ('C', 'E'): is_stopped = True
def action(scheduler, state=None): notification.accept(observer)
def action(*_, **__): notification.accept(observer)