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

Function run_coro

crates/wasm/Lib/asyncweb.py:130–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 prom = CallbackPromise()
129
130 async def run_coro():
131 try:
132 res = await coro
133 except BaseException as e:
134 prom.reject(e)
135 else:
136 prom.resolve(res)
137
138 run(run_coro())
139

Callers 1

_coro_promiseFunction · 0.85

Calls 2

rejectMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected