MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / coro_wrapper

Method coro_wrapper

pywebio/output.py:2173–2178  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

2171
2172 @wraps(func)
2173 async def coro_wrapper(*args, **kwargs):
2174 self.__enter__()
2175 try:
2176 return await func(*args, **kwargs)
2177 finally:
2178 self.__exit__(None, None, None)
2179
2180 if iscoroutinefunction(func):
2181 return coro_wrapper

Callers

nothing calls this directly

Calls 2

__enter__Method · 0.95
__exit__Method · 0.95

Tested by

no test coverage detected