Part of twisted.internet View Source
A reactor for integrating with CFRunLoop, the CoreFoundation main loop used by MacOS X.This is useful for integrating Twisted with PyObjC applications.
|Class||CFReactor||The CoreFoundation reactor.|
|Function||install||Configure the twisted mainloop to be run inside CFRunLoop.|
|Class||_WakerPlus||The normal Twisted waker will simply wake up the main loop, which causes
an iteration to run, which in turn causes
|Parameters||runLoop||the run loop to use.|
|runner||the function to call in order to actually invoke the main loop. This
will default to |
from PyObjCTools import AppHelper from twisted.internet.cfreactor import install install(runner=AppHelper.runEventLoop) # initialize your application reactor.run()
|Returns||The installed reactor.