function setImmediate
Jump to headingsetImmediate<T = void>(value?: T,options?: TimerOptions,): Promise<T>import {
setImmediate,
} from 'node:timers/promises';
const res = await setImmediate('result');
console.log(res); // Prints 'result'
Type Parameters Jump to heading
Jump to headingT = voidParameters Jump to heading
optional
Jump to headingvalue: TA value with which the promise is fulfilled.
optional
Jump to headingoptions: TimerOptionsReturn Type Jump to heading
Promise<T>