@thepalaceproject/circulation-admin
    Preparing search index...
    interface CollectionTask {
        busy: boolean;
        feedback: string;
        run: (
            action: () => Promise<void>,
            successMessage: string,
            errorFallback: string,
        ) => Promise<void>;
        success: boolean;
    }
    Index

    Properties

    busy: boolean

    True while the queued action is in flight.

    feedback: string

    The success or error message to display, or null when idle.

    run: (
        action: () => Promise<void>,
        successMessage: string,
        errorFallback: string,
    ) => Promise<void>

    Runs the action, managing busy/feedback/success state and errors.

    success: boolean

    True when feedback describes a success rather than a failure.