@vorlefan/google-news
Version:
Crawler for the newest news from google newspaper RSS
16 lines (14 loc) • 318 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WaitSec = WaitSec;
/**
* Wait a certain amount of seconds to continue
* @param {Number} value
* @example
* await sec(1)
*/
async function WaitSec(value) {
return new Promise(resolve => setTimeout(resolve, value * 1000));
}