zibri
    Preparing search index...

    The function values of the thread job data. This is separated because this cannot be persisted in a data source.

    type ThreadJobDataFunctions = {
        onCancel?: () => void;
        onComplete?: () => void;
        onError?: (error: Error) => void;
        onMessage?: (message: unknown) => void;
    }
    Index

    Properties

    onCancel?: () => void

    What should happen when the thread job was cancelled.

    onComplete?: () => void

    What should happen when the thread job completes.

    onError?: (error: Error) => void

    What should happen when an error occurs inside the thread job.

    onMessage?: (message: unknown) => void

    What should happen when a message is received from the thread job.