Exemple #1
0
        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
Exemple #2
0
        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
Exemple #3
0
 def action(scheduler, state=None):
     notification.accept(observer)
Exemple #4
0
 def action(scheduler, state=None):
     notification.accept(observer)
 def action(*_, **__):
     notification.accept(observer)