MCPcopy Index your code
hub / github.com/opendevops-cn/opendevops / wrapper

Function wrapper

scripts/tornado_source_code/tornado/concurrent.py:121–125  ·  view source on GitHub ↗
(self: Any, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

119
120 @functools.wraps(fn)
121 def wrapper(self: Any, *args: Any, **kwargs: Any) -> Future:
122 async_future = Future() # type: Future
123 conc_future = getattr(self, executor).submit(fn, self, *args, **kwargs)
124 chain_future(conc_future, async_future)
125 return async_future
126
127 return wrapper
128

Callers

nothing calls this directly

Calls 2

chain_futureFunction · 0.85
submitMethod · 0.45

Tested by

no test coverage detected