UNPKG

@odoo/o-spreadsheet

Version:
13 lines (12 loc) 262 B
/** * KeepLast is a concurrency primitive that manages a list of tasks, and only * keeps the last task active. * */ export declare class KeepLast<T> { private lastId; /** * Register a new task */ add(promise: Promise<T>): Promise<T>; }