MCPcopy Index your code
hub / github.com/RustPython/RustPython / decorator

Function decorator

Lib/test/support/threading_helper.py:62–67  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

60 """
61 @functools.wraps(func)
62 def decorator(*args):
63 key = threading_setup()
64 try:
65 return func(*args)
66 finally:
67 threading_cleanup(*key)
68 return decorator
69
70

Callers

nothing calls this directly

Calls 3

threading_setupFunction · 0.85
threading_cleanupFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected