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