From 53e652aa7bb82cb93db31045161dfa7cb35e8cb5 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 12 Mar 2024 22:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AC=E4=BA=86=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/ica_typing.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ica-rs/ica_typing.py b/ica-rs/ica_typing.py index 34d31ae..f73652c 100644 --- a/ica-rs/ica_typing.py +++ b/ica-rs/ica_typing.py @@ -96,13 +96,13 @@ class NewMessage: class IcaClient: - @staticmethod - async def send_message_a(client: "IcaClient", message: SendMessage) -> bool: - """ - 仅作占位, 不能使用 - (因为目前来说, rust调用 Python端没法启动一个异步运行时 - 所以只能 tokio::task::block_in_place 转换成同步调用) - """ + # @staticmethod + # async def send_message_a(client: "IcaClient", message: SendMessage) -> bool: + # """ + # 仅作占位, 不能使用 + # (因为目前来说, rust调用 Python端没法启动一个异步运行时 + # 所以只能 tokio::task::block_in_place 转换成同步调用) + # """ def send_message(self, message: SendMessage) -> bool: ... def send_and_warn(self, message: SendMessage) -> bool: