For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/lynxtron/api/@lynx-js/lynxtron/Class.UtilityProcess.md.
  • 简体中文
  • @lynx-js/lynxtron / UtilityProcess

    UtilityProcess

    继承

    • unknown

    构造函数

    new UtilityProcess()

    new UtilityProcess(): UtilityProcess

    返回

    UtilityProcess

    继承自

    EventEmitter.constructor

    属性

    pid

    readonly pid: undefined | number;

    The PID of the process.

    定义于

    apis/api/utility-process.d.ts:14


    stderr

    readonly stderr: any;

    A Readable Stream that represents the process's stderr.

    定义于

    apis/api/utility-process.d.ts:22


    stdout

    readonly stdout: any;

    A Readable Stream that represents the process's stdout.

    定义于

    apis/api/utility-process.d.ts:18

    方法

    kill()

    kill(): boolean

    Terminates the process gracefully. On some operating systems, the process will be terminated immediately.

    返回

    boolean

    定义于

    apis/api/utility-process.d.ts:27


    postMessage()

    postMessage(message: any, transfer?: any[]): void

    Send a message to the child process.

    参数

    范围类型
    messageany
    transfer?any[]

    返回

    void

    定义于

    apis/api/utility-process.d.ts:31

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。