Example #1
0
 def decorator(*args, **kwargs):
     reactor = Broker.get_instance().reactor
     return run_in_reactor(reactor)(fn)(*args, **kwargs)
def run_in_threaded_reactor(fn):
    """
    Decorator to run the decorated function in the threaded reactor.
    """
    return run_in_reactor(THREADED_REACTOR)(fn)
Example #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)
Example #4
0
 def decorator(*args, **kwargs):
     reactor = Broker.get_instance().reactor
     return run_in_reactor(reactor)(fn)(*args, **kwargs)