(*args, **kwargs)
| 10 | |
| 11 | def postpone(function): # type: ignore[no-untyped-def] |
| 12 | def decorator(*args, **kwargs): # type: ignore[no-untyped-def] |
| 13 | if settings.ENABLE_POSTPONE_DECORATOR: # pragma: no cover |
| 14 | t = Thread(target=function, args=args, kwargs=kwargs) |
| 15 | t.daemon = True |
| 16 | t.start() |
| 17 | else: |
| 18 | return function(*args, **kwargs) |
| 19 | |
| 20 | return decorator |
| 21 |
nothing calls this directly
no test coverage detected
searching dependent graphs…