@dusrel/image API
    Preparing search index...

    Interface TaskContext

    interface TaskContext {
        attempt: number;
        index: number;
        signal: AbortSignal;
    }
    Index
    attempt: number

    0 for the first try, increments on retries.

    index: number

    Index of the item in the input array.

    signal: AbortSignal

    Aborts when the batch is cancelled (or the item times out).