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])
| 62 | |
| 63 | |
| 64 | def 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] |
searching dependent graphs…