@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
17 lines • 525 B
TypeScript
/**
* Returns a promise that resolves on the next tick of the Node.js event loop.
* This is useful for deferring execution of code until after the current call stack is cleared.
*
* @example
* ```ts
* async function example() {
* console.log('Before nextTick');
* await nextTick();
* console.log('After nextTick');
* }
* ```
*
* @returns {Promise<void>} A promise that resolves on the next tick of the event loop
*/
export declare function nextTick(): Promise<void>;
//# sourceMappingURL=nextTick.d.ts.map