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

Function spawn

crates/wasm/Lib/asyncweb.py:22–27  ·  view source on GitHub ↗

Run a coroutine. Like run(), but returns a promise that resolves with the result of the coroutine.

(coro)

Source from the content-addressed store, hash-verified

20
21
22def spawn(coro):
23 """
24 Run a coroutine. Like run(), but returns a promise that resolves with
25 the result of the coroutine.
26 """
27 return _coro_promise(coro)
28
29
30class _Runner:

Callers 3

dump_traceback_laterFunction · 0.50
_fatal_error_c_threadFunction · 0.50
start_threadMethod · 0.50

Calls 1

_coro_promiseFunction · 0.85

Tested by

no test coverage detected