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

Function is_promise

crates/wasm/Lib/asyncweb.py:10–11  ·  view source on GitHub ↗
(prom)

Source from the content-addressed store, hash-verified

8
9
10def is_promise(prom):
11 return callable(getattr(prom, "then", None))
12
13
14def run(coro):

Callers 1

_resolveFunction · 0.85

Calls 2

callableFunction · 0.85
getattrFunction · 0.85

Tested by

no test coverage detected