a.p.ProcessUniverse(object) : class documentation
Each process for a
ProcessWorker lives in one of these.
For now, only raw mode is supported with the use of a reactor in the process.
|Method||loop||Runs a loop in a dedicated process that waits for new tasks. The loop exits when a
Runs a loop in a dedicated process that waits for new tasks. The loop exits when a
None object is supplied as a task.
Note that the sub-process can only return a
Deferred if I was constructed with useReactor set
True and the sub-process has its own reactor running. Otherwise, there should only be a single Twisted reactor running, the one in the main process.
|Parameters||connection||The sub-process end of an interprocess connection.|
loop calls this when the interprocess pipe sends it a string identifier for one of the iterators I have pending.
|Returns||A 2-tuple with the specified iterator's next value, and a bool indicating if the value was valid or a bogus