'See twisted.internet.interfaces.IReactorCore.callWhenRunning.'

def callWhenRunning(self, _callable, *args, **kw):

    if self.running:
        _callable(*args, **kw)
    else:
        return self.addSystemEventTrigger('after', 'startup', _callable, *args, **kw)
