mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 09:04:07 -08:00
7 lines
300 B
TypeScript
7 lines
300 B
TypeScript
/**
|
|
* Ensure all pending promises settle. The promise's `resolve` is placed in
|
|
* the macrotask queue and so called at the next iteration of the event loop
|
|
* after all promises in the microtask queue have settled first.
|
|
*/
|
|
export const flushPromises = async () => await new Promise(setImmediate);
|