Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
10
def
is_promise(prom):
11
return
callable(getattr(prom,
"then"
, None))
12
13
14
def
run(coro):
Callers
1
_resolve
Function · 0.85
Calls
2
callable
Function · 0.85
getattr
Function · 0.85
Tested by
no test coverage detected