| 691 | del f._source_traceback[-1] |
| 692 | |
| 693 | def finish_wait_for_handle(trans, key, ov): |
| 694 | # Note that this second wait means that we should only use |
| 695 | # this with handles types where a successful wait has no |
| 696 | # effect. So events or processes are all right, but locks |
| 697 | # or semaphores are not. Also note if the handle is |
| 698 | # signalled and then quickly reset, then we may return |
| 699 | # False even though we have not timed out. |
| 700 | return f._poll() |
| 701 | |
| 702 | self._cache[ov.address] = (f, ov, 0, finish_wait_for_handle) |
| 703 | return f |