From be2d7810f5f208a3f8c1949354fd6fc202a98be4 Mon Sep 17 00:00:00 2001 From: cheezzario Date: Sun, 27 Jul 2025 16:08:05 +0300 Subject: [PATCH] [ArkTS][StdLib] 'concurrency' namespace Description: 'concurrency' namespace phase 0 Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICQI9L Testing: All required pre-merge tests passed. Results are available in the ggwatcher Signed-off-by: cheezzario --- frameworks/ets/ets/application/Callee.ets | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frameworks/ets/ets/application/Callee.ets b/frameworks/ets/ets/application/Callee.ets index ff7a25c1ca4..2541c0fca69 100644 --- a/frameworks/ets/ets/application/Callee.ets +++ b/frameworks/ets/ets/application/Callee.ets @@ -18,6 +18,7 @@ import rpc from '@ohos.rpc'; import transfer from '@ohos.transfer'; import { BusinessError } from '@ohos.base'; import { Callee, CalleeCallback } from '@ohos.app.ability.UIAbility'; +import { concurrency as cnc } from 'std/core'; const domainID = 0x0000; const TAG = 'UIAbility'; @@ -81,7 +82,7 @@ class CalleeFromJs implements Callee { }); return; } - EAWorker.postToMain((): void => { + cnc.EAWorker.postToMain((): void => { ESValue.wrap(this.jsObj).invokeMethod('on', method, (seq: Any): EstParcelable => { let data = transfer.transferStatic(seq, 'rpc.MessageSequence') as rpc.MessageSequence; return new EstParcelable(callback(data)); @@ -125,7 +126,7 @@ class CalleeFromEts { } return new JsParcelable(retData); } - let job = EAWorker.postToMain((): Any => { + let job = cnc.EAWorker.postToMain((): Any => { // Expect user to read data as js Parcelable. return callback(transfer.transferDynamic(indata, 'rpc.MessageSequence')); }); @@ -246,4 +247,4 @@ export class CalleeImpl extends rpc.RemoteObject implements Callee { this.callList.delete(method); hilog.info(domainID, TAG, 'Callee off method [' + method + ']'); } -} \ No newline at end of file +} -- Gitee