Part of twisted.internet View Source
| Author | Jp Calderone | |
| Class | LoopingCall | Call a function repeatedly. |
| Class | SchedulerError | The operation could not be completed because the scheduler or one of its |
| Class | SchedulerStopped | The operation could not complete because the scheduler was stopped in |
| Class | TaskFinished | The operation could not complete because the task was already completed, |
| Class | TaskDone | The operation could not complete because the task was already completed. |
| Class | TaskStopped | The operation could not complete because the task was stopped. |
| Class | TaskFailed | The operation could not complete because the task died with an unhandled |
| Class | NotPaused | This exception is raised when a task is resumed which was not previously |
| Class | CooperativeTask | A CooperativeTask
is a task object inside a Cooperator,
which can be |
| Class | Cooperator | Cooperative task scheduler. |
| Function | coiterate | Cooperatively iterate over the given iterator, dividing runtime between it |
| Function | cooperate | Start running the given iterator as a long-running cooperative task, by |
| Class | Clock | Provide a deterministic, easily-controlled implementation of |
| Function | deferLater | Call the given function after a certain period of time has passed. |
| Class | _Timer | Undocumented |
| Function | _defaultScheduler | Undocumented |
| Parameters | iterator | the iterator to invoke. |
| Returns | a CooperativeTask
object representing this task.
| |
| Parameters | clock | The object which will be used to schedule the delayed call.
(type: IReactorTime
provider
) |
| delay | The number of seconds to wait before calling the function.
(type: float or int
) | |
| callable | The object to call after the delay. | |
| *args | The positional arguments to pass to callable.
| |
| **kw | The keyword arguments to pass to callable.
| |
| Returns | A deferred that fires with the result of the callable when the specified
time has elapsed.
(type: defer.Deferred
) | |