non-blocking call.
(self, timeout=None)
| 87 | return undoneJobs |
| 88 | |
| 89 | def pause(self, timeout=None): |
| 90 | """ non-blocking call. |
| 91 | """ |
| 92 | self._condition.acquire() |
| 93 | if self._status == 'DONE': |
| 94 | self._condition.release() |
| 95 | return |
| 96 | self._status = 'SLEEPING' |
| 97 | self._condition.notifyAll() |
| 98 | self._condition.release() |
| 99 | |
| 100 | def resume(self): |
| 101 | """ non-blocking call. |
no test coverage detected