MCPcopy
hub / github.com/marimo-team/marimo / asyncio_run

Function asyncio_run

marimo/_server/utils.py:64–74  ·  view source on GitHub ↗

asyncio.run() with platform-specific initialization. When using Sessions, make sure to use this method instead of `asyncio.run`. If not using a Session, don't call this method. `kwargs` are passed to `asyncio.run()`

(coro: Coroutine[Any, Any, T], **kwargs: dict[Any, Any])

Source from the content-addressed store, hash-verified

62
63
64def asyncio_run(coro: Coroutine[Any, Any, T], **kwargs: dict[Any, Any]) -> T:
65 """asyncio.run() with platform-specific initialization.
66
67 When using Sessions, make sure to use this method instead of `asyncio.run`.
68
69 If not using a Session, don't call this method.
70
71 `kwargs` are passed to `asyncio.run()`
72 """
73 initialize_asyncio()
74 return asyncio.run(coro, **kwargs) # type: ignore[arg-type]

Callers 7

previewFunction · 0.90
watch_and_exportFunction · 0.90
export_callbackFunction · 0.90
thumbnailFunction · 0.90
sessionFunction · 0.90

Calls 2

initialize_asyncioFunction · 0.90
runMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…