Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

harmonyOS Next上目前无法实现多线程 #3

@boafeng

Description

@boafeng

描述 / Description

原库安卓上支持多线程并发处理,但是在harmonyOS上要显示多线程并发存在两个问题:
1.TurboModuleContext不是sendable支持的参数类型,无法传递到子线程,导致监听事件无法传递
2.openharmony原生socket对象也不支持taskpool参数传递,无法在子线程中执行socket操作

复现步骤 / Steps to reproduce

多线程并发

库版本 / Library version

6.2.0-0.0.1

React Native OpenHarmony version

0.72.29

构建类型 / Build type

Debug app & dev bundle

设备 / Device

Real device

设备版本 / Device model

Mate 60(NEXT.0.0.61)

已悉知 / Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions