sync_get_data = async_to_sync(get_data) @async_to_sync async def get_other_data(...): ... 如果存在异步函数,那么它会在当前线程的事件循环中运行。如果没有当前事件 ...
確定! 回上一頁