Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
??reactor
@param reactor: Rector ??

        def installReactor(reactor):
    """??reactor
    @param reactor: Rector ??
    """
    import gtwisted.core
    import sys
    if 'twisted.internet.reactor' in sys.modules:
        raise error.ReactorAlreadyInstalledError("reactor already installed")
    gtwisted.core.reactor = reactor
    sys.modules['gtwisted.core.reactor'] = reactor
        


src/g/t/gtwisted-0.1.7alpha/gtwisted/core/greactor.py   gtwisted(Download)
def install():
    """装载BaseReactor为服务的reactor
    """
    reactor = GeventReactor()
    from gtwisted.core.installer import installReactor
    installReactor(reactor)

src/g/t/gtwisted-0.1.7alpha/gtwisted/core/basereactor.py   gtwisted(Download)
def install():
    """装载BaseReactor为服务的reactor
    """
    reactor = BaseReactor()
    from gtwisted.core.installer import installReactor
    installReactor(reactor)