import {
setImmediate,
} from 'node:timers/promises';
const res = await setImmediate('result');
console.log(res); // Prints 'result'
function
timers.promises.setImmediate
value?: T,
): Promise<T>;
@param value
A value with which the promise is fulfilled.