Skip to content

Instantly share code, notes, and snippets.

View priyankatgit's full-sized avatar

Priyank priyankatgit

View GitHub Profile
priyankatgit / pool_product_import.js
Last active August 16, 2022 08:37
Promise Pool Showcase
// Think that we got the list of products to import into database(May be from CSV or external API anything...)
const { products } = require("./products");
async function execute() {
let importedProducts = [];
for await (const data of products) {
const product = await importProduct(data);