コード例 #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
ファイル: broker.py プロジェクト: PromenadeSoftware/Parlay
 def decorator(*args, **kwargs):
     reactor = Broker.get_instance().reactor
     return run_in_reactor(reactor)(fn)(*args, **kwargs)