Invokes dump() on a background thread after waiting for the specified time.
(secs)
| 48 | |
| 49 | |
| 50 | def dump_after(secs): |
| 51 | """Invokes dump() on a background thread after waiting for the specified time.""" |
| 52 | |
| 53 | def dumper(): |
| 54 | time.sleep(secs) |
| 55 | try: |
| 56 | dump() |
| 57 | except: |
| 58 | log.swallow_exception() |
| 59 | |
| 60 | thread = threading.Thread(target=dumper) |
| 61 | thread.daemon = True |
| 62 | thread.start() |
nothing calls this directly
no test coverage detected
searching dependent graphs…