evil_for
const axios = require("axios"); | |
const urls = ['https://github.com/mzabriskie/axios', 'https://discord.js.org']; | |
async function asyncLoadAllTheChunks() { | |
const resps = await Promise.all(urls.map(url=> axios.get(url))) | |
const [first, second] = resps; | |
console.log(` | |
тут первый ${first} | |
тут второй ${second} | |
и так далее, ну ты понял | |
`) | |
} | |
asyncLoadAllTheChunks() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment