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

Function run

crates/wasm/Lib/asyncweb.py:14–19  ·  view source on GitHub ↗

Run a coroutine. The coroutine should yield promise objects with a ``.then(on_success, on_error)`` method.

(coro)

Source from the content-addressed store, hash-verified

12
13
14def run(coro):
15 """
16 Run a coroutine. The coroutine should yield promise objects with a
17 ``.then(on_success, on_error)`` method.
18 """
19 _Runner(coro)
20
21
22def spawn(coro):

Callers 2

mainFunction · 0.70
_coro_promiseFunction · 0.70

Calls 1

_RunnerClass · 0.85

Tested by

no test coverage detected