Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/AstrBotDevs/AstrBot
/ resolve_maybe_awaitable
Function
resolve_maybe_awaitable
astrbot/dashboard/async_utils.py:10–13 ·
view source on GitHub ↗
(value: T | Awaitable[T])
Source
from the content-addressed store, hash-verified
8
9
10
async
def
resolve_maybe_awaitable(value: T | Awaitable[T]) -> T:
11
while
inspect.isawaitable(value):
12
value = await cast(Awaitable[T], value)
13
return
cast(T, value)
14
15
16
async
def
run_maybe_async(
Callers
1
run_maybe_async
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected