@lacunahub/letsfrag
    Preparing search index...

    Class Fork

    Wrapper for managing a forked child process.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • file: string

        Path to the file to execute in the child process

      • args: string[]

        Arguments to pass to the child process

      • options: ForkOptions

        Node.js fork options

      Returns Fork

    Properties

    args: string[]

    Arguments to pass to the child process

    file: string

    Path to the file to execute in the child process

    options: ForkOptions

    Node.js fork options

    process?: ChildProcess

    The child process instance.

    Methods

    • Respawns the child process.

      Returns ChildProcess

      The new child process instance

    • Sends a message to the child process.

      Parameters

      Returns Promise<void>

      Promise that resolves when the message is sent

    • Spawns the child process.

      Returns ChildProcess

      The spawned child process