MCPcopy Create free account
hub / github.com/EasyIME/PIME / wrapper

Function wrapper

python/python3/tornado/concurrent.py:120–124  ·  view source on GitHub ↗
(self: Any, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

chain_futureFunction · 0.85
submitMethod · 0.45

Tested by

no test coverage detected