Example:
const util = require('util');
const setImmediatePromise = util.promisify(setImmediate);
setImmediatePromise('foobar').then((value) => {
// value === 'foobar' (passing values is optional)
// This is executed after all the I/O callbacks.
});
// or can be called with async function
async function timerExample() {
console.log('Before I/O callbacks');
await setImmediatePromise();
console.log('After I/O callbacks');
}
timerExample();
Example:
const util = require('util');
const setIntervalPromise = util.promisify(setInterval);
setIntervalPromise(100, 'xyz').then((value) => {
// value === 'xyz' (passing the values is optional)
// This will be executed after every 100 milliseconds.
});
Example:
const util = require('util');
const setTimeoutPromise = util.promisify(setTimeout);
setTimeoutPromise(100, 'xyz').then((value) => {
// value === 'xyz' (passing the values is optional)
// This will be executed after about 100 milliseconds.
});
If you want to sell your readymade software to the genuine clients or businessman, list your software with details and demo links.
Clients will find it using our advanced search filter and will contact you directly.
No any charge for the product lsiting.