MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / decorator

Function decorator

api/util/util.py:12–18  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

10
11def 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

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…