videosphere
    Preparing search index...
    • Runs a subprocess and optionally polls for import-job cancellation, killing the child with SIGTERM when the job is cancelled.

      Parameters

      • command: string

        Executable name or path.

      • args: readonly string[]

        Argument vector.

      • label: string

        Human-readable label for error messages.

      • Optionaloptions: {
            onStderrChunk?: (chunk: string) => void;
            onStdoutChunk?: (chunk: string) => void;
            isCancelled?: () => Promise<boolean>;
        }

        Optional stdout/stderr handlers and cancellation polling callback.

      Returns Promise<void>

      Resolves when the child exits zero; rejects on failure or cancellation.