Fake interruptible that is not interruptible and has no timeout and is using no threads and no signals This implementation is used for debugging. This ignores the timeout and just runs the function as-is.
(func, args=None, kwargs=None, timeout=DEFAULT_TIMEOUT)
| 182 | |
| 183 | |
| 184 | def fake_interruptible(func, args=None, kwargs=None, timeout=DEFAULT_TIMEOUT): |
| 185 | """ |
| 186 | Fake interruptible that is not interruptible and has no timeout and is using |
| 187 | no threads and no signals This implementation is used for debugging. This |
| 188 | ignores the timeout and just runs the function as-is. |
| 189 | """ |
| 190 | |
| 191 | try: |
| 192 | return NO_ERROR, func(*(args or ()), **(kwargs or {})) |
| 193 | except Exception: |
| 194 | return ERROR_MSG + traceback_format_exc(), NO_VALUE |