From 5a33a8aee863847cb4899db5ce5662fc4e1cd86e Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Tue, 20 May 2025 10:36:25 +0800 Subject: [PATCH] add doc Signed-off-by: zhangzezhong --- .../js-apis-app-ability-sendableContextManager.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis-ability-kit/js-apis-app-ability-sendableContextManager.md b/zh-cn/application-dev/reference/apis-ability-kit/js-apis-app-ability-sendableContextManager.md index c6824a159a1..4ccce1946d1 100644 --- a/zh-cn/application-dev/reference/apis-ability-kit/js-apis-app-ability-sendableContextManager.md +++ b/zh-cn/application-dev/reference/apis-ability-kit/js-apis-app-ability-sendableContextManager.md @@ -537,7 +537,7 @@ setEventHubMultithreadingEnabled(context: common.Context, enabled: boolean): voi 如果需要使用[Context](js-apis-inner-application-context.md)中的[EventHub](./js-apis-inner-application-eventHub.md)进行跨线程通信,可以通过该接口来启用该Context的Eventhub跨线程数据传递功能。 > **说明:** > -> - 当两个Context进行通信时,需要分别在对应的Context中启动Eventhub跨线程数据传递功能。 +> - 当两个Context进行通信时,需要调用setEventHubMultithreadingEnabled接口来分别设置对应的Context支持EventHub跨线程数据传递功能。 > - 启用该接口前,数据是通过引用的方式传递的。启用该接口后,数据是通过序列化的方式传递的,即发送端线程与接收端线程的数据相互独立。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core -- Gitee