UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

9 lines (8 loc) • 207 B
export function createSerialQueue() { let chain = Promise.resolve(); return (task) => { const pending = chain.then(task, task); chain = pending.catch(() => undefined); return pending; }; }