t.i.t.react(main, argv, _reactor=None) : function documentation

Part of twisted.internet.task View Source

Call main and run the reactor until the Deferred it returns fires.

This is intended as the way to start up an application with a well-defined completion condition. Use it to write clients or one-off asynchronous operations. Prefer this to calling reactor.run directly, as this function will also:

ParametersmainA callable which returns a Deferred. It should take as many arguments as there are elements in the list argv.
argvA list of arguments to pass to main.
_reactorAn implementation detail to allow easier unit testing. Do not supply this parameter.
Present Since12.3
API Documentation for Twisted, generated by pydoctor at 2013-04-03 11:20:05.