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

Function _call_resolve

crates/wasm/Lib/asyncweb.py:143–149  ·  view source on GitHub ↗
(f, arg)

Source from the content-addressed store, hash-verified

141
142
143def _call_resolve(f, arg):
144 try:
145 ret = f(arg)
146 except BaseException as e:
147 return Promise.reject(e)
148 else:
149 return _resolve(ret)
150
151
152# basically an implementation of Promise.all

Callers 1

thenMethod · 0.85

Calls 3

_resolveFunction · 0.70
fFunction · 0.50
rejectMethod · 0.45

Tested by

no test coverage detected