t.f.b.Cooperate(CallLater) : class documentation

Part of twisted.flow.base View Source View In Hierarchy

Requests that processing be paused so other tasks can resume

Yield this object when the current chain would block or periodically during an intensive processing task. The flow mechanism uses these objects to signal that the current processing chain should be paused and resumed later. This allows other delayed operations to be processed, etc. Usage is quite simple:
  # within some generator wrapped by a Controller
  yield Cooperate(1)  # yield for a second or more
Method __init__ Undocumented
Method callLater Undocumented
def __init__(self, timeout=0): (source)
def callLater(self, callable): (source)
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.