Task queued for execution when the application comes online.
export interface OfflineQueueTask { taskId: string; fn: () => Promise<void>; addedAt: number; attempts: number;} Copy
export interface OfflineQueueTask { taskId: string; fn: () => Promise<void>; addedAt: number; attempts: number;}
Unique identifier for the task (used for deduplication).
Async function to execute when online.
Timestamp when the task was added.
Number of attempts made to execute this task.
Task queued for execution when the application comes online.
Source