Task queued for execution when the application comes online.

export interface OfflineQueueTask {
taskId: string;
fn: () => Promise<void>;
addedAt: number;
attempts: number;
}
interface OfflineQueueTask {
    taskId: string;
    fn: () => Promise<void>;
    addedAt: number;
    attempts: number;
}

Properties

taskId: string

Unique identifier for the task (used for deduplication).

fn: () => Promise<void>

Async function to execute when online.

addedAt: number

Timestamp when the task was added.

attempts: number

Number of attempts made to execute this task.