t.i.cfreactor : module documentation

Part of twisted.internet View Source

This module provides support for Twisted to interact with CoreFoundation CFRunLoops. This includes Cocoa's NSRunLoop.

In order to use this support, simply do the following:
   |  from twisted.internet import cfreactor
   |  cfreactor.install()

Then use the twisted.internet APIs as usual. The other methods here are not intended to be called directly under normal use. However, install can take a runLoop kwarg, and run will take a withRunLoop arg if you need to explicitly pass a CFRunLoop for some reason. Otherwise it will make a pretty good guess as to which runLoop you want (the current NSRunLoop if PyObjC is imported, otherwise the current CFRunLoop. Either way, if one doesn't exist, it will be created).

Maintainer: Bob Ippolito
Class SelectableSocketWrapper Undocumented
Class CFReactor Undocumented
Function install Configure the twisted mainloop to be run inside CFRunLoop.
def install(runLoop=None): (source)
Configure the twisted mainloop to be run inside CFRunLoop.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.