MCPcopy Index your code
hub / github.com/AirtestProject/Poco / new_func

Function new_func

poco/utils/simplerpc/utils.py:11–16  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

9def sync_wrapper(func):
10 @wraps(func)
11 def new_func(*args, **kwargs):
12 cb = func(*args, **kwargs)
13 ret, err = cb.wait(timeout=30)
14 if err:
15 raise RemoteError(err['message'])
16 return ret
17 return new_func

Callers

nothing calls this directly

Calls 2

RemoteErrorClass · 0.85
waitMethod · 0.45

Tested by

no test coverage detected