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