mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-19 22:54:50 -04:00
use new GetTaskExecutor function
Signed-off-by: liujinwei <hw.liujinwei@huawei.com> Change-Id: Ib824bf0c6080c0856c12b8e47f795fcdae60431c
This commit is contained in:
@@ -25,7 +25,7 @@ void JSContextMenu::Close(const JSCallbackInfo& args)
|
||||
auto container = Container::Current();
|
||||
if (container) {
|
||||
auto context = container->GetPipelineContext();
|
||||
auto executor = container->GetTaskExecutor();
|
||||
auto executor = Container::CurrentTaskExecutor();
|
||||
if (executor) {
|
||||
executor->PostTask(
|
||||
[context]() {
|
||||
|
||||
Reference in New Issue
Block a user