Пример #1
0
 def decorator(*args, **kwargs):
     reactor = Broker.get_instance().reactor
     return run_in_reactor(reactor)(fn)(*args, **kwargs)
Пример #2
0
def run_in_threaded_reactor(fn):
    """
    Decorator to run the decorated function in the threaded reactor.
    """
    return run_in_reactor(THREADED_REACTOR)(fn)
Пример #3
0
def run_in_threaded_reactor(fn):
    """
    Decorator to run the decorated function in the threaded reactor.
    """
    return run_in_reactor(THREADED_REACTOR)(fn)
Пример #4
0
 def decorator(*args, **kwargs):
     reactor = Broker.get_instance().reactor
     return run_in_reactor(reactor)(fn)(*args, **kwargs)