tubes.kit.Pauser(object)
class documentationtubes.kit
(View In Hierarchy)
Multiple parties may be interested in suppressing some ongoing concurrent activity, each for their own purposes.
A Pauser
maintains the
state associated with each of these independent pauses, providing an object
for each one, making it straightforward for you to implement a high-level
pause and resume API suitable for use from multiple clients, in terms of
low-level state change operations.
Method | __init__ | |
Method | pause | Pause something, getting an IPause provider which can
be used to unpause it. |
Parameters | actuallyPause | a callable to be invoked when the underlying system ought to transition from paused to unpaused. (type: 0-argument callable) |
actuallyResume | a callable to be invoked when the underlying system ought to transition from unpaused to paused. |